mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-12 10:04:39 +08:00
fix: Fixed issue where applications failed to load when creating deployment websites (#10882)
This commit is contained in:
parent
7fa39687b5
commit
f686e7cbc4
2 changed files with 2 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue