diff --git a/frontend/src/views/website/website/config/basic/proxy/create/index.vue b/frontend/src/views/website/website/config/basic/proxy/create/index.vue index 018b28c5a..fa1de84ca 100644 --- a/frontend/src/views/website/website/config/basic/proxy/create/index.vue +++ b/frontend/src/views/website/website/config/basic/proxy/create/index.vue @@ -13,10 +13,7 @@ -
- - {{ $t('website.modifierHelper') }} -
+ {{ $t('website.modifierHelper') }}
@@ -41,19 +38,13 @@ -
- - {{ $t('website.proxyPassHelper') }} -
+ {{ $t('website.proxyPassHelper') }}
-
- - {{ $t('website.proxyHostHelper') }} -
+ {{ $t('website.proxyHostHelper') }}
@@ -64,10 +55,7 @@
{{ $t('website.sni') }} -
- - {{ $t('website.sniHelper') }} -
+ {{ $t('website.sniHelper') }}
@@ -110,10 +98,7 @@ -
- - {{ $t('website.browserCacheTimeHelper') }} -
+ {{ $t('website.browserCacheTimeHelper') }} @@ -130,10 +115,7 @@ -
- - {{ $t('website.serverCacheTimeHelper') }} -
+ {{ $t('website.serverCacheTimeHelper') }}
@@ -142,52 +124,42 @@ {{ $t('website.replace') }} -
-
- -
-
-
-
- Rule {{ index + 1 }} - +
+
+ + + + + + + + + {{ $t('commons.button.delete') }} -
- - - - - - - - - - - - - - - -
+ +
-
+
{{ $t('website.addReplace') }} -
-
- - {{ $t('website.replaceHelper') }} + {{ $t('website.replaceHelper') }}
@@ -212,7 +184,7 @@ import { MsgError, MsgSuccess } from '@/utils/message'; import { Website } from '@/api/interface/website'; import { Units } from '@/global/mimetype'; import { isDomain } from '@/utils/util'; -import { QuestionFilled, Delete, Plus, ArrowRight } from '@element-plus/icons-vue'; +import { Delete, Plus } from '@element-plus/icons-vue'; const proxyForm = ref(); const rules = ref({ @@ -235,7 +207,7 @@ const initData = (): Website.ProxyConfig => ({ cacheTime: 1, cacheUnit: 'm', name: '', - modifier: '^~', + modifier: '', match: '/', proxyPass: 'http://127.0.0.1:8080', proxyHost: '$host', @@ -260,6 +232,7 @@ const handleClose = () => { const acceptParams = (proxyParam: Website.ProxyConfig) => { replaces.value = []; proxy.value = proxyParam; + activeTab.value = 'basic'; const res = getProtocolAndHost(proxyParam.proxyPass); if (res != null) { diff --git a/frontend/src/views/website/website/config/basic/proxy/index.vue b/frontend/src/views/website/website/config/basic/proxy/index.vue index c6f3231bb..18c3e5e13 100644 --- a/frontend/src/views/website/website/config/basic/proxy/index.vue +++ b/frontend/src/views/website/website/config/basic/proxy/index.vue @@ -17,7 +17,7 @@ ({ cacheTime: 1, cacheUnit: 'm', name: '', - modifier: '^~', + modifier: '', match: '/', proxyPass: 'http://', proxyHost: '$host',