mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 主域名和代号保持一致
This commit is contained in:
parent
9f7c6b07e2
commit
324903f7a0
@ -696,7 +696,7 @@ export default {
|
||||
otherDomains: '其他域名',
|
||||
type: '类型',
|
||||
static: '静态网站',
|
||||
deployment: '一键部署',
|
||||
deployment: '反向代理',
|
||||
proxy: '反向代理',
|
||||
alias: '代号',
|
||||
remark: '备注',
|
||||
|
@ -83,7 +83,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
|
||||
<el-input v-model="website.primaryDomain"></el-input>
|
||||
<el-input v-model="website.primaryDomain" @input="changeAlias(website.primaryDomain)"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('website.otherDomains')" prop="otherDomains">
|
||||
<el-input
|
||||
@ -129,7 +129,7 @@ const website = ref({
|
||||
alias: '',
|
||||
remark: '',
|
||||
appType: 'installed',
|
||||
appInstallId: 0,
|
||||
appInstallId: undefined,
|
||||
webSiteGroupId: 1,
|
||||
otherDomains: '',
|
||||
appinstall: {
|
||||
@ -252,6 +252,10 @@ const submit = async (formEl: FormInstance | undefined) => {
|
||||
});
|
||||
};
|
||||
|
||||
const changeAlias = (value: string) => {
|
||||
website.value.alias = value;
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
acceptParams,
|
||||
});
|
||||
|
@ -11,8 +11,6 @@
|
||||
{{ $t('commons.button.create') }}
|
||||
</el-button>
|
||||
<el-button type="primary" plain @click="openGroup">{{ $t('website.group') }}</el-button>
|
||||
<!-- <el-button type="primary" plain>{{ '修改默认页' }}</el-button>
|
||||
<el-button type="primary" plain>{{ '默认站点' }}</el-button> -->
|
||||
</template>
|
||||
<el-table-column
|
||||
:label="$t('commons.table.name')"
|
||||
@ -25,17 +23,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('commons.table.status')" prop="status"></el-table-column>
|
||||
<!-- <el-table-column :label="'备份'" prop="backup"></el-table-column> -->
|
||||
<el-table-column :label="$t('website.remark')" prop="remark"></el-table-column>
|
||||
<el-table-column :label="$t('website.protocol')" prop="protocol"></el-table-column>
|
||||
<el-table-column :label="$t('website.expireDate')">
|
||||
<template #default="{ row }">
|
||||
<span v-if="row.protocol === 'HTTP'">{{ $t('website.neverExpire') }}</span>
|
||||
<!-- <span v-else>{{ row.webSiteSSL.id }}</span> -->
|
||||
<span v-else>{{ dateFromat(1, 1, row.webSiteSSL.expireDate) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column :label="'SSL证书'" prop="ssl"></el-table-column> -->
|
||||
<fu-table-operations
|
||||
:ellipsis="1"
|
||||
:buttons="buttons"
|
||||
|
Loading…
x
Reference in New Issue
Block a user