From 3260f56bb611665d55f127b9654255859750d78a Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 13 Feb 2023 10:53:59 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=BD=91=E7=AB=99=20=E5=88=87=E6=8D=A2=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/website/website/create/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/website/website/create/index.vue b/frontend/src/views/website/website/create/index.vue index 6a47f5554..dddd88215 100644 --- a/frontend/src/views/website/website/create/index.vue +++ b/frontend/src/views/website/website/create/index.vue @@ -88,7 +88,7 @@ - + { }); }; +const changeApp = () => { + apps.value.forEach((app) => { + if (app.id === website.value.appinstall.appId) { + website.value.appinstall.appkey = app.key; + getApp(); + } + }); +}; + const getApp = () => { GetApp(website.value.appinstall.appkey).then((res) => { appVersions.value = res.data.versions; @@ -298,9 +307,7 @@ const acceptParams = async (installPath: string) => { if (websiteForm.value) { websiteForm.value.resetFields(); } - console.log(installPath); staticPath.value = installPath + '/www/sites/'; - await ListGroups().then((res) => { groups.value = res.data; website.value.webSiteGroupId = res.data[0].id;