From a2c16e6a5419b4c097ad599cbb9f518b83a3549d Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 11 Dec 2023 14:40:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AF=E4=BB=B6=E7=9A=84=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=20(#3266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/3259 --- .../app-store/installed/upgrade/index.vue | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/app-store/installed/upgrade/index.vue b/frontend/src/views/app-store/installed/upgrade/index.vue index d1d3ca057..4b782f0c8 100644 --- a/frontend/src/views/app-store/installed/upgrade/index.vue +++ b/frontend/src/views/app-store/installed/upgrade/index.vue @@ -33,6 +33,30 @@ + + + + + + + {{ $t('app.appOfficeWebsite') }} + + + + + + {{ $t('app.document') }} + + + + + + {{ $t('app.github') }} + + + + + @@ -69,17 +93,22 @@ const resourceName = ref(''); const rules = ref({ detailId: [Rules.requiredSelect], }); - +const app = ref(); const em = defineEmits(['close']); const handleClose = () => { open.value = false; em('close', open); }; -const acceptParams = (id: number, name: string, op: string) => { +const toLink = (link: string) => { + window.open(link, '_blank'); +}; + +const acceptParams = (id: number, name: string, op: string, appDetail: App.AppDetail) => { operateReq.installId = id; operateReq.operate = op; resourceName.value = name; + app.value = appDetail; GetAppUpdateVersions(id).then((res) => { versions.value = res.data; if (res.data != null && res.data.length > 0) {