|
@@ -670,12 +670,8 @@ export default { |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
this.timerIns = setTimeout(() => { this.intervalTask(); }, 3000); |
|
|
this.timerIns = setTimeout(() => { this.intervalTask(); }, 3000); |
|
|
}, |
|
|
|
|
|
beforeDestroy() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
destroyed: function () { |
|
|
destroyed: function () { |
|
|
console.log('destroyed'); |
|
|
|
|
|
window.removeEventListener("scroll", this.onscroll); |
|
|
window.removeEventListener("scroll", this.onscroll); |
|
|
window.removeEventListener("resize", this.listenBottomHeight); |
|
|
window.removeEventListener("resize", this.listenBottomHeight); |
|
|
// window.removeEventListener("mouseenter", this.setIconMouseEnter); |
|
|
// window.removeEventListener("mouseenter", this.setIconMouseEnter); |
|
@@ -1604,7 +1600,6 @@ export default { |
|
|
* 文件打开方式 |
|
|
* 文件打开方式 |
|
|
*/ |
|
|
*/ |
|
|
async openFileWith(file) { |
|
|
async openFileWith(file) { |
|
|
debugger; |
|
|
|
|
|
const localWorkspacePrefix = this.localWorkspacePrefix; |
|
|
const localWorkspacePrefix = this.localWorkspacePrefix; |
|
|
const fileStoreKey = getFileStoreKey(file, this.currentNodeFolder); |
|
|
const fileStoreKey = getFileStoreKey(file, this.currentNodeFolder); |
|
|
if(!this.localFileHashMap[fileStoreKey]) return; |
|
|
if(!this.localFileHashMap[fileStoreKey]) return; |
|
@@ -1613,6 +1608,7 @@ export default { |
|
|
// 若文件在协作文件中,则不更改状态 |
|
|
// 若文件在协作文件中,则不更改状态 |
|
|
const { archName, extension, id: fileId, nodeName } = file; |
|
|
const { archName, extension, id: fileId, nodeName } = file; |
|
|
const isCooperationFile = !!nodeName; |
|
|
const isCooperationFile = !!nodeName; |
|
|
|
|
|
console.log(filePath); |
|
|
if(isCooperationFile) { system.clientOpenFileWith(filePath); return; } |
|
|
if(isCooperationFile) { system.clientOpenFileWith(filePath); return; } |
|
|
// 将文件状态设置为编辑中 |
|
|
// 将文件状态设置为编辑中 |
|
|
const flagRes = await services.changeFileWorkStatus(fileId, 2); |
|
|
const flagRes = await services.changeFileWorkStatus(fileId, 2); |
|
|