mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-27 20:30:32 +00:00
perf: 新窗口打开任务时保持日志显示状态
This commit is contained in:
parent
6875b1b8af
commit
54ebb327bd
@ -527,6 +527,13 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
const navActive = $A.getObject(this.$route.query, 'navActive')
|
||||
if (['dialog', 'log'].includes(navActive)) {
|
||||
this.navActive = navActive;
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.nowInterval = setInterval(() => {
|
||||
this.nowTime = $A.Time();
|
||||
@ -1225,7 +1232,7 @@ export default {
|
||||
}
|
||||
this.$Electron.sendMessage('windowRouter', {
|
||||
name: `task-${this.taskDetail.id}`,
|
||||
path: `/single/task/${this.taskDetail.id}`,
|
||||
path: `/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,
|
||||
force: false,
|
||||
config
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user