commit
bd58048714
@ -1469,6 +1469,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onmessage(msg) {
|
onmessage(msg) {
|
||||||
|
console.log(msg.url, this.$route.path, msg, this.path)
|
||||||
let fileDoc = msg.body
|
let fileDoc = msg.body
|
||||||
const url = msg.url
|
const url = msg.url
|
||||||
let index = this.fileList.findIndex(file => file.id === fileDoc.id)
|
let index = this.fileList.findIndex(file => file.id === fileDoc.id)
|
||||||
@ -1482,10 +1483,9 @@ export default {
|
|||||||
this.fileList[index].updateDate = fileDoc.updateDate
|
this.fileList[index].updateDate = fileDoc.updateDate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ('deleteFile' === url) {
|
const isCurrentPath = (this.path + '/') === fileDoc
|
||||||
if (index > -1) {
|
if ('deleteFile' === url && isCurrentPath) {
|
||||||
this.getFileListEnter()
|
this.getFileListEnter()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if ('createFile' === url) {
|
if ('createFile' === url) {
|
||||||
if (fileDoc.$set) {
|
if (fileDoc.$set) {
|
||||||
@ -1512,7 +1512,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.clearOnCreateFilename()
|
this.clearOnCreateFilename()
|
||||||
}
|
}
|
||||||
if (this.$route.path === '/trash' && msg.url === 'operationTips') {
|
if (this.$route.path.startsWith('/trash') && msg.url === 'operationTips') {
|
||||||
this.getFileListEnter()
|
this.getFileListEnter()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user