From dabe1376c3a198e3f147009de377d9919b3af276 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 30 Apr 2024 16:39:39 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/ProjectLog.vue | 35 +++++++++++++++++-- .../assets/js/pages/single/taskContent.vue | 3 +- resources/mobile | 2 +- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ProjectLog.vue b/resources/assets/js/pages/manage/components/ProjectLog.vue index 95a0a9774..91a4b51af 100644 --- a/resources/assets/js/pages/manage/components/ProjectLog.vue +++ b/resources/assets/js/pages/manage/components/ProjectLog.vue @@ -181,12 +181,43 @@ export default { } } if ($A.isJson(record.link)) { - let {title, url} = record.link + const {title, url} = record.link vNode.push(h('span', ': ')) vNode.push(h('a', { attrs: { - href: $A.mainUrl(url), + href: url, target: '_blank' + }, + on: { + click: e => { + e.preventDefault() + const path = `/${url}` + if (this.$Electron) { + this.$store.dispatch('openChildWindow', { + name: `project-log-${record.id}`, + path: path, + force: false, + config: { + title: this.$L(title), + parent: null, + width: Math.min(window.screen.availWidth, 1440), + height: Math.min(window.screen.availHeight, 900), + }, + }); + } else if (this.$isEEUiApp) { + this.$store.dispatch('openAppChildPage', { + pageType: 'app', + pageTitle: this.$L(title), + url: 'web.js', + params: { + allowAccess: true, + url: $A.rightDelete(window.location.href, window.location.hash) + `#${path}` + }, + }) + } else { + window.open($A.mainUrl(path.substring(1))) + } + } } }, this.$L(title))) } diff --git a/resources/assets/js/pages/single/taskContent.vue b/resources/assets/js/pages/single/taskContent.vue index 5c9388a56..b11c5698e 100644 --- a/resources/assets/js/pages/single/taskContent.vue +++ b/resources/assets/js/pages/single/taskContent.vue @@ -3,7 +3,7 @@
-
+
{{pageName}}
{{$L('只读')}} @@ -28,6 +28,7 @@ export default { return { loadIng: 0, info: null, + showHeader: !$A.isEEUiApp, } }, mounted() { diff --git a/resources/mobile b/resources/mobile index e56789580..4c0793188 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit e56789580f38834d6124b17d06b2be1e050c9f5c +Subproject commit 4c0793188cc01a2ce4371924089bf9cc9fa4876e