diff --git a/src/api/option.js b/src/api/option.js
index 561ba3d57..e87b7d6d6 100644
--- a/src/api/option.js
+++ b/src/api/option.js
@@ -4,16 +4,21 @@ const baseUrl = '/api/admin/options'
const optionApi = {}
-optionApi.listAll = keys => {
+optionApi.listAll = () => {
return service({
url: `${baseUrl}/map_view`,
- params: {
- key: keys
- },
method: 'get'
})
}
+optionApi.listAllByKeys = keys => {
+ return service({
+ url: `${baseUrl}/map_view/keys`,
+ data: keys,
+ method: 'post'
+ })
+}
+
optionApi.query = params => {
return service({
url: `${baseUrl}/list_view`,
diff --git a/src/config/router.config.js b/src/config/router.config.js
index 190176c09..de276065e 100644
--- a/src/config/router.config.js
+++ b/src/config/router.config.js
@@ -175,8 +175,8 @@ export const asyncRouterMap = [
},
{
path: '/system/options',
- name: 'OptionForm',
- component: () => import('@/views/system/OptionForm'),
+ name: 'SystemOptions',
+ component: () => import('@/views/system/SystemOptions'),
meta: { title: '博客设置', hiddenHeaderContent: false }
},
{
diff --git a/src/store/modules/option.js b/src/store/modules/option.js
index 91937b7a6..dd6fb7d1b 100644
--- a/src/store/modules/option.js
+++ b/src/store/modules/option.js
@@ -31,7 +31,7 @@ const option = {
}) {
return new Promise((resolve, reject) => {
optionApi
- .listAll(keys)
+ .listAllByKeys(keys)
.then(response => {
commit('SET_OPTIONS', response.data.data)
resolve(response)
diff --git a/src/views/post/TagList.vue b/src/views/post/TagList.vue
index 3606912c6..6317d5efc 100644
--- a/src/views/post/TagList.vue
+++ b/src/views/post/TagList.vue
@@ -97,7 +97,7 @@
{{ tag.name }}
diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue
deleted file mode 100644
index 6182ea088..000000000
--- a/src/views/system/OptionForm.vue
+++ /dev/null
@@ -1,1252 +0,0 @@
-
-
-
-
-
-
-
-
- 常规设置
-
-
-
-
-
-
-
-
-
-
- this.logoDrawerVisible = true"
- >
-
-
-
-
-
-
- this.faviconDrawerVisible = true"
- >
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- SEO 设置
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- 文章设置
-
-
-
-
- Markdown 编辑器
- 富文本编辑器
-
-
-
-
- 创建时间
- 最后编辑时间
- 点击量
-
-
-
-
-
-
-
-
-
-
- 全文
- 摘要
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- 评论设置
-
-
-
-
- 默认
- 抽象几何图形
- 小怪物
- Wavatar
- 复古
- 机器人
- 不显示头像
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- 附件设置
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ attachmentType[item].text }}
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- SMTP 服务
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 发送
-
-
-
-
-
-
-
-
- 其他设置
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
-
-
-
- 固定链接
-
-
-
-
- {{ options.blog_url }}/{{ options.archives_prefix }}/${slug}{{ options.path_suffix }}
- {{ options.blog_url }}{{ new Date() | moment_post_date }}${slug}{{ options.path_suffix }}
- {{ options.blog_url }}{{ new Date() | moment_post_day }}${slug}{{ options.path_suffix }}
- {{ options.blog_url }}/?p=${id}
-
-
- {{ permalinkType[item].text }}
-
-
-
-
- {{ options.blog_url }}/{{ options.sheet_prefix }}/${slug}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.links_prefix }}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.photos_prefix }}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.journals_prefix }}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.archives_prefix }}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.categories_prefix }}/${slug}{{ options.path_suffix }}
-
-
-
-
-
- {{ options.blog_url }}/{{ options.tags_prefix }}/${slug}{{ options.path_suffix }}
-
-
-
-
-
- 仅对内建路径有效
-
-
-
-
- 保存
-
-
-
-
-
- API 设置
-
-
-
-
-
-
-
-
-
- 保存
-
-
-
-
-
- 其他设置
-
-
-
-
-
-
- 保存
-
-
-
-
-
-
-
-
-
-
-
- {{ advancedOptions?'基础选项':'高级选项' }}
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/SystemOptions.vue b/src/views/system/SystemOptions.vue
new file mode 100644
index 000000000..4c9e49794
--- /dev/null
+++ b/src/views/system/SystemOptions.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+ 常规设置
+
+
+
+
+
+ SEO 设置
+
+
+
+
+
+ 文章设置
+
+
+
+
+
+ 评论设置
+
+
+
+
+
+ 附件设置
+
+
+
+
+
+ SMTP 服务
+
+
+
+
+
+ 其他设置
+
+
+
+
+
+
+
+
+ 固定链接
+
+
+
+
+
+ API 设置
+
+
+
+
+
+ 其他设置
+
+
+
+
+
+
+
+
+
+
+
+ {{ advancedOptions?'基础选项':'高级选项' }}
+
+
+
+
+
+
+
diff --git a/src/views/system/optiontabs/AdvancedOtherTab.vue b/src/views/system/optiontabs/AdvancedOtherTab.vue
new file mode 100644
index 000000000..e5b21e047
--- /dev/null
+++ b/src/views/system/optiontabs/AdvancedOtherTab.vue
@@ -0,0 +1,52 @@
+
+
+
+
diff --git a/src/views/system/optiontabs/ApiTab.vue b/src/views/system/optiontabs/ApiTab.vue
new file mode 100644
index 000000000..7f6756a7e
--- /dev/null
+++ b/src/views/system/optiontabs/ApiTab.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/AttachmentTab.vue b/src/views/system/optiontabs/AttachmentTab.vue
new file mode 100644
index 000000000..a1251865f
--- /dev/null
+++ b/src/views/system/optiontabs/AttachmentTab.vue
@@ -0,0 +1,577 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ attachmentType[item].text }}
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/CommentTab.vue b/src/views/system/optiontabs/CommentTab.vue
new file mode 100644
index 000000000..820e684d3
--- /dev/null
+++ b/src/views/system/optiontabs/CommentTab.vue
@@ -0,0 +1,109 @@
+
+
+
+
+
+ 默认
+ 抽象几何图形
+ 小怪物
+ Wavatar
+ 复古
+ 机器人
+ 不显示头像
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/GeneralTab.vue b/src/views/system/optiontabs/GeneralTab.vue
new file mode 100644
index 000000000..16741e2fb
--- /dev/null
+++ b/src/views/system/optiontabs/GeneralTab.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
diff --git a/src/views/system/optiontabs/OtherTab.vue b/src/views/system/optiontabs/OtherTab.vue
new file mode 100644
index 000000000..69c28f908
--- /dev/null
+++ b/src/views/system/optiontabs/OtherTab.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/PermalinkTab.vue b/src/views/system/optiontabs/PermalinkTab.vue
new file mode 100644
index 000000000..2d1057065
--- /dev/null
+++ b/src/views/system/optiontabs/PermalinkTab.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.archives_prefix }}/${slug}{{ options.path_suffix }}
+ {{ options.blog_url }}{{ new Date() | moment_post_date }}${slug}{{ options.path_suffix }}
+ {{ options.blog_url }}{{ new Date() | moment_post_day }}${slug}{{ options.path_suffix }}
+ {{ options.blog_url }}/?p=${id}
+
+
+ {{ permalinkType[item].text }}
+
+
+
+
+ {{ options.blog_url }}/{{ options.sheet_prefix }}/${slug}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.links_prefix }}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.photos_prefix }}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.journals_prefix }}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.archives_prefix }}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.categories_prefix }}/${slug}{{ options.path_suffix }}
+
+
+
+
+
+ {{ options.blog_url }}/{{ options.tags_prefix }}/${slug}{{ options.path_suffix }}
+
+
+
+
+
+ * 格式为:.${suffix}
,仅对内建路径有效
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/PostTab.vue b/src/views/system/optiontabs/PostTab.vue
new file mode 100644
index 000000000..c5f863493
--- /dev/null
+++ b/src/views/system/optiontabs/PostTab.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
+ Markdown 编辑器
+ 富文本编辑器
+
+
+
+
+ 创建时间
+ 最后编辑时间
+ 点击量
+
+
+
+
+
+
+
+
+
+
+ 全文
+ 摘要
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/SeoTab.vue b/src/views/system/optiontabs/SeoTab.vue
new file mode 100644
index 000000000..30bc6dfb0
--- /dev/null
+++ b/src/views/system/optiontabs/SeoTab.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
diff --git a/src/views/system/optiontabs/SmtpTab.vue b/src/views/system/optiontabs/SmtpTab.vue
new file mode 100644
index 000000000..c94f29cb8
--- /dev/null
+++ b/src/views/system/optiontabs/SmtpTab.vue
@@ -0,0 +1,180 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发送
+
+
+
+
+
+
+