mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 13:22:49 +00:00
fix: 在任务新窗口使用显示文件窗口错误的情况
This commit is contained in:
parent
d7620bf4ff
commit
c768395094
@ -2468,10 +2468,7 @@ export default {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'filepos':
|
case 'filepos':
|
||||||
if (this.windowPortrait) {
|
this.$store.dispatch("filePos", value);
|
||||||
this.$store.dispatch("openDialog", 0);
|
|
||||||
}
|
|
||||||
this.goForward({name: 'manage-file', params: value});
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'link':
|
case 'link':
|
||||||
|
|||||||
20
resources/assets/js/store/actions.js
vendored
20
resources/assets/js/store/actions.js
vendored
@ -257,6 +257,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
reject({ret: -1, data: {}, msg: "System error"})
|
reject({ret: -1, data: {}, msg: "System error"})
|
||||||
}
|
}
|
||||||
|
console.error(xhr, status);
|
||||||
}
|
}
|
||||||
// WebSocket
|
// WebSocket
|
||||||
if (params.websocket === true) {
|
if (params.websocket === true) {
|
||||||
@ -410,6 +411,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示文件(打开文件所在位置)
|
||||||
|
* @param state
|
||||||
|
* @param dispatch
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
|
filePos({state, dispatch}, params) {
|
||||||
|
if ($A.isSubElectron) {
|
||||||
|
$A.execMainDispatch("filePos", params)
|
||||||
|
$A.Electron.sendMessage('mainWindowActive');
|
||||||
|
return
|
||||||
|
}
|
||||||
|
dispatch('openTask', 0)
|
||||||
|
if (state.windowPortrait) {
|
||||||
|
dispatch("openDialog", 0);
|
||||||
|
}
|
||||||
|
$A.goForward({name: 'manage-file', params});
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 切换面板变量
|
* 切换面板变量
|
||||||
* @param state
|
* @param state
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user