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;