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