Commit e5331ced1752abaa7047b6de9b4ec685cf7bea43

Authored by 杨泽宇
1 parent e49bb4e0

debug

src/views/dashboard/index.vue
1 <script setup lang="ts"> 1 <script setup lang="ts">
2 import { ref, onMounted, reactive, getCurrentInstance } from "vue"; 2 import { ref, onMounted, reactive, getCurrentInstance } from "vue";
3 import router from "@/router"; 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 let instance: ComponentInternalInstance | null = getCurrentInstance(); 5 let instance: ComponentInternalInstance | null = getCurrentInstance();
7 const title = ref(import.meta.env.VITE_APP_TITLE).value; 6 const title = ref(import.meta.env.VITE_APP_TITLE).value;
8 let asyncData = reactive({ 7 let asyncData = reactive({
@@ -10,8 +9,6 @@ let asyncData = reactive({ @@ -10,8 +9,6 @@ let asyncData = reactive({
10 organizationName: "", 9 organizationName: "",
11 }); 10 });
12 onMounted(() => { 11 onMounted(() => {
13 - // asyncData.organizationLogo = store.family.loginStore().organizationLogo;  
14 - // asyncData.organizationName = store.family.loginStore().organizationName;  
15 asyncData.organizationLogo = useLoginStore()?.getOlogo; 12 asyncData.organizationLogo = useLoginStore()?.getOlogo;
16 asyncData.organizationName = useLoginStore()?.getOname; 13 asyncData.organizationName = useLoginStore()?.getOname;
17 }); 14 });
src/views/event/feedback/index.vue
@@ -202,8 +202,12 @@ onMounted(() =&gt; { @@ -202,8 +202,12 @@ onMounted(() =&gt; {
202 <template #default="scope"> 202 <template #default="scope">
203 <el-image 203 <el-image
204 style="width: 100px; height: 100px" 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 :initial-index="4" 211 :initial-index="4"
208 fit="cover" 212 fit="cover"
209 > 213 >