refactor: post month path type. (halo-dev/console#94)

pull/3445/head
Ryan Wang 2020-03-12 14:43:28 +08:00 committed by GitHub
parent ed6cc4a707
commit a138ca55cd
3 changed files with 10 additions and 4 deletions

View File

@ -22,11 +22,11 @@ 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/') {
Vue.filter('moment_post_date', function(dataStr, pattern = '/YYYY/MM/') {
return moment(dataStr).format(pattern)
})
Vue.filter('moment_post_day', function(dataStr, pattern = '/YYYY/M/D/') {
Vue.filter('moment_post_day', function(dataStr, pattern = '/YYYY/MM/DD/') {
return moment(dataStr).format(pattern)
})

View File

@ -68,7 +68,10 @@
<a-radio :value="0"></a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="自定义模板:">
<a-form-item
label="自定义模板:"
v-if="customTpls.length > 0"
>
<a-select v-model="selectedPost.template">
<a-select-option
key=""

View File

@ -49,7 +49,10 @@
<a-radio :value="true">关闭</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="自定义模板:">
<a-form-item
label="自定义模板:"
v-if="customTpls.length>0"
>
<a-select v-model="selectedSheet.template">
<a-select-option
key=""