|
|
@ -18,13 +18,47 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<a-select v-model="options.post_permalink_type">
|
|
|
|
<a-select v-model="options.post_permalink_type">
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option
|
|
|
|
v-for="item in Object.keys(permalinkType)"
|
|
|
|
v-for="item in Object.keys(postPermalinkType)"
|
|
|
|
:key="item"
|
|
|
|
:key="item"
|
|
|
|
:value="item"
|
|
|
|
:value="item"
|
|
|
|
>{{ permalinkType[item].text }}</a-select-option>
|
|
|
|
>{{ postPermalinkType[item].text }}</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="自定义页面前缀:">
|
|
|
|
<a-form-model-item label="归档前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.archives_prefix }}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.archives_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="分类前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.categories_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.categories_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="标签前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.tags_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.tags_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="自定义页面固定链接类型:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span v-if="options.sheet_permalink_type === 'SECONDARY'">{{ options.blog_url }}/{{ options.sheet_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
<span v-else-if="options.sheet_permalink_type === 'ROOT'">{{ options.blog_url }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-select v-model="options.sheet_permalink_type">
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
v-for="item in Object.keys(sheetPermalinkType)"
|
|
|
|
|
|
|
|
:key="item"
|
|
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
|
|
>{{ sheetPermalinkType[item].text }}</a-select-option>
|
|
|
|
|
|
|
|
</a-select>
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item
|
|
|
|
|
|
|
|
label="自定义页面前缀:"
|
|
|
|
|
|
|
|
v-show="options.sheet_permalink_type === 'SECONDARY'"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot="help">
|
|
|
|
<template slot="help">
|
|
|
|
<span>{{ options.blog_url }}/{{ options.sheet_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
<span>{{ options.blog_url }}/{{ options.sheet_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -48,24 +82,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<a-input v-model="options.journals_prefix" />
|
|
|
|
<a-input v-model="options.journals_prefix" />
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="归档前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.archives_prefix }}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.archives_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="分类前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.categories_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.categories_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="标签前缀:">
|
|
|
|
|
|
|
|
<template slot="help">
|
|
|
|
|
|
|
|
<span>{{ options.blog_url }}/{{ options.tags_prefix }}/{slug}{{ options.path_suffix }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<a-input v-model="options.tags_prefix" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="路径后缀:">
|
|
|
|
<a-form-model-item label="路径后缀:">
|
|
|
|
<template slot="help">
|
|
|
|
<template slot="help">
|
|
|
|
<span>* 格式为:<code>.{suffix}</code>,仅对内建路径有效</span>
|
|
|
|
<span>* 格式为:<code>.{suffix}</code>,仅对内建路径有效</span>
|
|
|
@ -89,6 +105,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import postApi from '@/api/post'
|
|
|
|
import postApi from '@/api/post'
|
|
|
|
|
|
|
|
import sheetApi from '@/api/sheet'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'PermalinkTab',
|
|
|
|
name: 'PermalinkTab',
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
@ -107,7 +124,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
permalinkType: postApi.permalinkType,
|
|
|
|
postPermalinkType: postApi.permalinkType,
|
|
|
|
|
|
|
|
sheetPermalinkType: sheetApi.permalinkType,
|
|
|
|
wrapperCol: {
|
|
|
|
wrapperCol: {
|
|
|
|
xl: { span: 8 },
|
|
|
|
xl: { span: 8 },
|
|
|
|
lg: { span: 8 },
|
|
|
|
lg: { span: 8 },
|
|
|
|