Commit e5331ced1752abaa7047b6de9b4ec685cf7bea43
1 parent
e49bb4e0
debug
Showing
2 changed files
with
7 additions
and
6 deletions
src/views/dashboard/index.vue
| 1 | 1 | <script setup lang="ts"> |
| 2 | 2 | import { ref, onMounted, reactive, getCurrentInstance } from "vue"; |
| 3 | 3 | import router from "@/router"; |
| 4 | -// import * as store from "@/pinia/index"; | |
| 5 | -import { useLoginStore } from '@/pinia/login'; | |
| 4 | +import { useLoginStore } from "@/pinia/login"; | |
| 6 | 5 | let instance: ComponentInternalInstance | null = getCurrentInstance(); |
| 7 | 6 | const title = ref(import.meta.env.VITE_APP_TITLE).value; |
| 8 | 7 | let asyncData = reactive({ |
| ... | ... | @@ -10,8 +9,6 @@ let asyncData = reactive({ |
| 10 | 9 | organizationName: "", |
| 11 | 10 | }); |
| 12 | 11 | onMounted(() => { |
| 13 | - // asyncData.organizationLogo = store.family.loginStore().organizationLogo; | |
| 14 | - // asyncData.organizationName = store.family.loginStore().organizationName; | |
| 15 | 12 | asyncData.organizationLogo = useLoginStore()?.getOlogo; |
| 16 | 13 | asyncData.organizationName = useLoginStore()?.getOname; |
| 17 | 14 | }); | ... | ... |
src/views/event/feedback/index.vue
| ... | ... | @@ -202,8 +202,12 @@ onMounted(() => { |
| 202 | 202 | <template #default="scope"> |
| 203 | 203 | <el-image |
| 204 | 204 | style="width: 100px; height: 100px" |
| 205 | - :src="scope.row?.imgs[0]? scope.row?.imgs[0]: globalProperties.$defaultImage" | |
| 206 | - :preview-src-list="scope.row?.imgs" | |
| 205 | + :src=" | |
| 206 | + scope.row?.imgs[0] | |
| 207 | + ? scope.row?.imgs[0] | |
| 208 | + : globalProperties.$defaultImage | |
| 209 | + " | |
| 210 | + :preview-src-list="scope.row?.imgs ? scope.row.imgs.split(',') : []" | |
| 207 | 211 | :initial-index="4" |
| 208 | 212 | fit="cover" |
| 209 | 213 | > | ... | ... |