mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-13 17:24:44 +08:00
style: 修改 openresty 非 80 443 端口提示 (#2276)
This commit is contained in:
parent
7b4b0bddff
commit
a241fb32d2
@ -42,9 +42,9 @@
|
||||
</el-button>
|
||||
</span>
|
||||
|
||||
<span class="warn" v-if="key === 'openresty' && httpPort != 80">
|
||||
<span class="warn" v-if="key === 'openresty' && (httpPort != 80 || httpsPort != 443)">
|
||||
<el-alert class="helper" type="error" :closable="false">
|
||||
{{ $t('website.openrestryHelper', [httpPort]) }}
|
||||
{{ $t('website.openrestryHelper', [httpPort, httpsPort]) }}
|
||||
</el-alert>
|
||||
</span>
|
||||
</div>
|
||||
@ -123,6 +123,7 @@ let operateReq = reactive({
|
||||
});
|
||||
let refresh = ref(1);
|
||||
const httpPort = ref(0);
|
||||
const httpsPort = ref(0);
|
||||
|
||||
const em = defineEmits(['setting', 'isExist', 'before', 'update:loading', 'update:maskShow']);
|
||||
const setting = () => {
|
||||
@ -140,6 +141,7 @@ const onCheck = async () => {
|
||||
em('isExist', res.data);
|
||||
operateReq.installId = res.data.appInstallId;
|
||||
httpPort.value = res.data.httpPort;
|
||||
httpsPort.value = res.data.httpsPort;
|
||||
refresh.value++;
|
||||
})
|
||||
.catch(() => {
|
||||
|
@ -1505,7 +1505,8 @@ const message = {
|
||||
changeVersion: 'Switch version',
|
||||
retainConfig: 'Whether to keep php-fpm.conf and php.ini files',
|
||||
runDirHelper2: 'Please ensure that the secondary running directory is under the index directory',
|
||||
openrestryHelper: 'The default port of OpenResty is {0}, which affects website domain name access',
|
||||
openrestryHelper:
|
||||
'OpenResty default HTTP port: {0} HTTPS port: {1}, which may affect website domain name access and HTTPS forced redirect',
|
||||
},
|
||||
php: {
|
||||
short_open_tag: 'Short tag support',
|
||||
|
@ -1432,7 +1432,7 @@ const message = {
|
||||
changeVersion: '切換版本',
|
||||
retainConfig: '是否保留 php-fpm.conf 和 php.ini 文件',
|
||||
runDirHelper2: '請確保二級運行目錄位於 index 目錄下',
|
||||
openrestryHelper: 'OpenResty默認端口為 {0},影響網站域名訪問',
|
||||
openrestryHelper: 'OpenResty 默認 HTTP 端口:{0} HTTPS 端口:{1},可能影響網站域名訪問和 HTTPS 強制跳轉',
|
||||
},
|
||||
php: {
|
||||
short_open_tag: '短標簽支持',
|
||||
|
@ -1432,7 +1432,7 @@ const message = {
|
||||
changeVersion: '切换版本',
|
||||
retainConfig: '是否保留 php-fpm.conf 和 php.ini 文件',
|
||||
runDirHelper2: '请确保二级运行目录位于 index 目录下',
|
||||
openrestryHelper: 'OpenResty默认端口为 {0},影响网站域名访问',
|
||||
openrestryHelper: 'OpenResty 默认 HTTP 端口:{0} HTTPS 端口 :{1},可能影响网站域名访问和 HTTPS 强制跳转',
|
||||
},
|
||||
php: {
|
||||
short_open_tag: '短标签支持',
|
||||
|
Loading…
x
Reference in New Issue
Block a user