s
This commit is contained in:
parent
2e0cb8a084
commit
cdafe30d33
@ -18,7 +18,7 @@ const currentListUuid=ref('')
|
||||
}
|
||||
const res=await getSessionList(data)
|
||||
if (res.code===0){
|
||||
dataList.value=res.data.data
|
||||
dataList.value=res.data.data??[]
|
||||
}
|
||||
}
|
||||
const detailData=ref([])
|
||||
@ -45,7 +45,7 @@ const currentListUuid=ref('')
|
||||
conversationOpt:null,
|
||||
}
|
||||
})
|
||||
detailData.value=res.data
|
||||
detailData.value=res.data??[]
|
||||
}
|
||||
}
|
||||
const createSessionStore=async ()=>{
|
||||
|
@ -1,16 +1,12 @@
|
||||
<script setup>
|
||||
import {ref} from 'vue'
|
||||
import { NAvatar } from 'naive-ui'
|
||||
|
||||
|
||||
const defaultAvatar=ref(JSON.parse(localStorage.getItem('userInfo')).Avatar)
|
||||
|
||||
defineProps({
|
||||
image: Boolean
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="image">
|
||||
<NAvatar :src="defaultAvatar" :fallback-src="defaultAvatar" />
|
||||
|
Loading…
Reference in New Issue
Block a user