Browse Source

feat:404重定向取消设置是否保留 URL 参数 (#1854)

pull/1861/head
zhengkunwang 1 year ago committed by GitHub
parent
commit
480b8acd66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      frontend/src/views/website/website/config/basic/redirect/create/index.vue

14
frontend/src/views/website/website/config/basic/redirect/create/index.vue

@ -51,14 +51,12 @@
<el-form-item :label="$t('website.redirectRoot')" prop="redirectRoot" v-if="redirect.type == '404'">
<el-switch v-model="redirect.redirectRoot"></el-switch>
</el-form-item>
<div v-if="!redirect.redirectRoot">
<el-form-item :label="$t('website.targetURL')" prop="target">
<el-input v-model.trim="redirect.target"></el-input>
</el-form-item>
<el-form-item :label="$t('website.keepPath')" prop="keepPath">
<el-switch v-model="redirect.keepPath"></el-switch>
</el-form-item>
</div>
<el-form-item :label="$t('website.targetURL')" prop="target" v-if="!redirect.redirectRoot">
<el-input v-model.trim="redirect.target"></el-input>
</el-form-item>
<el-form-item :label="$t('website.keepPath')" prop="keepPath" v-if="redirect.type !== '404'">
<el-switch v-model="redirect.keepPath"></el-switch>
</el-form-item>
</el-form>
</el-col>
</el-row>

Loading…
Cancel
Save