diff --git a/src/store/modules/option.js b/src/store/modules/option.js
index 7dd5cc0f1..476f5b084 100644
--- a/src/store/modules/option.js
+++ b/src/store/modules/option.js
@@ -8,7 +8,11 @@ const keys = [
'developer_mode',
'attachment_upload_image_preview_enable',
'attachment_upload_max_parallel_uploads',
- 'attachment_upload_max_files'
+ 'attachment_upload_max_files',
+ 'sheet_prefix',
+ 'post_permalink_type',
+ 'archives_prefix',
+ 'path_suffix'
]
const option = {
state: {
diff --git a/src/utils/filter.js b/src/utils/filter.js
index 260167145..636f3161a 100644
--- a/src/utils/filter.js
+++ b/src/utils/filter.js
@@ -22,6 +22,14 @@ Vue.filter('moment', function(dataStr, pattern = 'YYYY-MM-DD HH:mm') {
return moment(dataStr).format(pattern)
})
+Vue.filter('moment_post_date', function(dataStr, pattern = '/YYYY/M/') {
+ return moment(dataStr).format(pattern)
+})
+
+Vue.filter('moment_post_day', function(dataStr, pattern = '/YYYY/M/D/') {
+ return moment(dataStr).format(pattern)
+})
+
Vue.filter('timeAgo', timeAgo)
Vue.filter('fileSizeFormat', function(value) {
diff --git a/src/views/post/components/PostSettingDrawer.vue b/src/views/post/components/PostSettingDrawer.vue
index c9c5a4de8..31f11efe6 100644
--- a/src/views/post/components/PostSettingDrawer.vue
+++ b/src/views/post/components/PostSettingDrawer.vue
@@ -24,10 +24,13 @@
>
-
+
+
+ {{ options.blog_url }}/{{ options.archives_prefix }}/{{ selectedPost.url?selectedPost.url:'${url}' }}{{ options.path_suffix }}
+ {{ options.blog_url }}{{ selectedPost.createTime?selectedPost.createTime:new Date() | moment_post_date }}{{ selectedPost.url?selectedPost.url:'${url}' }}{{ options.path_suffix }}
+ {{ options.blog_url }}{{ selectedPost.createTime?selectedPost.createTime:new Date() | moment_post_day }}{{ selectedPost.url?selectedPost.url:'${url}' }}{{ options.path_suffix }}
+ {{ options.blog_url }}/?p={{ selectedPost.id?selectedPost.id:'${id}' }}
+
diff --git a/src/views/sheet/components/SheetSettingDrawer.vue b/src/views/sheet/components/SheetSettingDrawer.vue
index 930994b58..03988b78e 100644
--- a/src/views/sheet/components/SheetSettingDrawer.vue
+++ b/src/views/sheet/components/SheetSettingDrawer.vue
@@ -26,7 +26,7 @@
diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue
index 2e24a7542..a2642fe8d 100644
--- a/src/views/system/OptionForm.vue
+++ b/src/views/system/OptionForm.vue
@@ -619,8 +619,8 @@
{{ options.blog_url }}/{{ options.archives_prefix }}/${url}{{ options.path_suffix }}
- {{ options.blog_url }}/1970/01/${url}{{ options.path_suffix }}
- {{ options.blog_url }}/1970/01/01/${url}{{ options.path_suffix }}
+ {{ options.blog_url }}/1970/1/${url}{{ options.path_suffix }}
+ {{ options.blog_url }}/1970/1/1/${url}{{ options.path_suffix }}
{{ options.blog_url }}/?p=${id}