mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-08 22:46:51 +08:00
fix: fix somme issue with website (#8594)
This commit is contained in:
parent
fff7bfc3d2
commit
633dbe1aec
3 changed files with 12 additions and 3 deletions
|
@ -119,6 +119,8 @@
|
|||
<el-form-item :label="$t('app.containerName')" prop="params.CONTAINER_NAME">
|
||||
<el-input v-model.trim="runtime.params['CONTAINER_NAME']"></el-input>
|
||||
</el-form-item>
|
||||
<el-text>{{ $t('container.env') }}</el-text>
|
||||
<br />
|
||||
<Environment :environments="runtime.environments" />
|
||||
<el-form-item>
|
||||
<el-alert type="warning" :closable="false">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<el-option
|
||||
v-for="(group, index) in groups"
|
||||
:key="index"
|
||||
:label="group.name"
|
||||
:label="group.name == 'Default' ? $t('commons.table.default') : group.name"
|
||||
:value="group.id"
|
||||
></el-option>
|
||||
</el-select>
|
||||
|
@ -62,6 +62,7 @@ const form = reactive({
|
|||
webSiteGroupId: 0,
|
||||
IPV6: false,
|
||||
alias: '',
|
||||
favorite: false,
|
||||
});
|
||||
const rules = ref({
|
||||
primaryDomain: [Rules.requiredInput],
|
||||
|
|
|
@ -464,6 +464,7 @@
|
|||
:key="index"
|
||||
:label="ssl.primaryDomain"
|
||||
:value="ssl.id"
|
||||
:disabled="ssl.pem == ''"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -866,8 +867,13 @@ const listSSLs = () => {
|
|||
website.value.websiteSSLID = undefined;
|
||||
websiteSSL.value = {};
|
||||
if (ssls.value.length > 0) {
|
||||
website.value.websiteSSLID = ssls.value[0].id;
|
||||
changeSSl(website.value.websiteSSLID);
|
||||
for (const ssl of ssls.value) {
|
||||
if (ssl.pem != '') {
|
||||
website.value.websiteSSLID = ssl.id;
|
||||
changeSSl(website.value.websiteSSLID);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue