mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-19 22:58:12 +00:00
refactor: 移除 userAgent 相关代码以简化窗口管理逻辑
This commit is contained in:
parent
7321ab06f0
commit
4cfc5e6024
@ -239,7 +239,7 @@ export default {
|
|||||||
"onDocumentReady": this.onDocumentReady,
|
"onDocumentReady": this.onDocumentReady,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
if (/\/hideenOfficeTitle\//.test(window.navigator.userAgent)) {
|
if ($A.isElectron) {
|
||||||
config.document.title = " ";
|
config.document.title = " ";
|
||||||
}
|
}
|
||||||
if (this.readOnly || this.historyId > 0) {
|
if (this.readOnly || this.historyId > 0) {
|
||||||
|
|||||||
@ -3786,7 +3786,6 @@ export default {
|
|||||||
path: path,
|
path: path,
|
||||||
title,
|
title,
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
userAgent: "/hideenOfficeTitle/",
|
|
||||||
});
|
});
|
||||||
} else if (this.$isEEUIApp) {
|
} else if (this.$isEEUIApp) {
|
||||||
this.$store.dispatch('openAppChildPage', {
|
this.$store.dispatch('openAppChildPage', {
|
||||||
|
|||||||
@ -186,7 +186,6 @@ export default {
|
|||||||
path: path,
|
path: path,
|
||||||
title,
|
title,
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
userAgent: "/hideenOfficeTitle/",
|
|
||||||
});
|
});
|
||||||
} else if (this.$isEEUIApp) {
|
} else if (this.$isEEUIApp) {
|
||||||
this.$store.dispatch('openAppChildPage', {
|
this.$store.dispatch('openAppChildPage', {
|
||||||
|
|||||||
@ -1963,7 +1963,6 @@ export default {
|
|||||||
path: path,
|
path: path,
|
||||||
title: `${file.name} (${$A.bytesToSize(file.size)})`,
|
title: `${file.name} (${$A.bytesToSize(file.size)})`,
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
userAgent: "/hideenOfficeTitle/",
|
|
||||||
});
|
});
|
||||||
} else if (this.$isEEUIApp) {
|
} else if (this.$isEEUIApp) {
|
||||||
this.$store.dispatch('openAppChildPage', {
|
this.$store.dispatch('openAppChildPage', {
|
||||||
|
|||||||
@ -1525,7 +1525,6 @@ export default {
|
|||||||
path: path,
|
path: path,
|
||||||
title: $A.getFileName(item),
|
title: $A.getFileName(item),
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
userAgent: "/hideenOfficeTitle/",
|
|
||||||
});
|
});
|
||||||
} else if (this.$isEEUIApp) {
|
} else if (this.$isEEUIApp) {
|
||||||
this.$store.dispatch('openAppChildPage', {
|
this.$store.dispatch('openAppChildPage', {
|
||||||
|
|||||||
1
resources/assets/js/utils/file.js
vendored
1
resources/assets/js/utils/file.js
vendored
@ -70,7 +70,6 @@ export function openFileInClient(vm, item, options = {}) {
|
|||||||
titleFixed: windowConfig.titleFixed,
|
titleFixed: windowConfig.titleFixed,
|
||||||
width: windowConfig.width,
|
width: windowConfig.width,
|
||||||
height: windowConfig.height,
|
height: windowConfig.height,
|
||||||
userAgent: "/hideenOfficeTitle/",
|
|
||||||
force: options.force === undefined ? false : options.force,
|
force: options.force === undefined ? false : options.force,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user