1.loading问题修改2.上次打开数据清空
3.导航栏显示优化
This commit is contained in:
@@ -41,6 +41,7 @@ const handleClose = () => {
|
||||
//文件信息
|
||||
const fileData: any = ref({})
|
||||
const open = async (row: any, id: any) => {
|
||||
fileData.value = {}
|
||||
dialogVisible.value = true
|
||||
loading.value = true
|
||||
const obj = {
|
||||
@@ -50,8 +51,10 @@ const open = async (row: any, id: any) => {
|
||||
}
|
||||
await getFileServiceFileOrDir(obj).then(res => {
|
||||
if (res.code == 'A0000') {
|
||||
fileData.value = res.data[0]
|
||||
fileData.value.nDid = id
|
||||
if (res.data && res.data.length != 0) {
|
||||
fileData.value = res.data[0]
|
||||
fileData.value.nDid = id
|
||||
}
|
||||
loading.value = false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user