fix: Fixed issue where applications failed to load when creating deployment websites (#10882)

This commit is contained in:
CityFun 2025-11-07 14:48:30 +08:00 committed by GitHub
parent 7fa39687b5
commit f686e7cbc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -442,7 +442,6 @@ export const getWebsiteTypes = () => [
label: i18n.global.t('runtime.runtime'),
value: 'runtime',
},
{
label: i18n.global.t('website.proxy'),
value: 'proxy',

View file

@ -591,9 +591,7 @@ const changeType = (type: string) => {
switch (type) {
case 'deployment':
website.value.appType = 'installed';
if (appInstalls.value && appInstalls.value.length > 0 && appInstalls.value[0].status === 'Running') {
website.value.appInstallId = appInstalls.value[0].id;
}
searchAppInstalled('website');
break;
case 'runtime':
getRuntimes();
@ -715,11 +713,10 @@ const acceptParams = async () => {
website.value.type = websiteType;
const dirRes = await getPathByType('websiteDir');
staticPath.value = dirRes.data + '/sites/';
changeType(websiteType);
runtimeResource.value = 'appstore';
runtimeReq.value = initRuntimeReq();
changeType(websiteType);
listAcmeAccount();
open.value = true;