mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Fixed issue where applications failed to load when creating deployment websites (#10882)
This commit is contained in:
@@ -442,7 +442,6 @@ export const getWebsiteTypes = () => [
|
||||
label: i18n.global.t('runtime.runtime'),
|
||||
value: 'runtime',
|
||||
},
|
||||
|
||||
{
|
||||
label: i18n.global.t('website.proxy'),
|
||||
value: 'proxy',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user