fix: eslint cdoe

This commit is contained in:
TankRyze 2019-10-10 21:35:49 +08:00
parent 231fa139f1
commit 3a693c61e3
3 changed files with 5 additions and 6 deletions

View File

@ -22,7 +22,7 @@
<script>
import AccessNumber from './Valine/AccessNumber'
//js
// js
import { fromatDateTime } from '@theme/util/formatDate.js'
export default {
@ -65,9 +65,8 @@ export default {
const m = Number(value.substr(14, 2))
const s = Number(value.substr(17, 2))
// 00:00:00 (00:00:00)
// > 0 00:00:00
if (h > 0 || m > 0 || s > 0) {
// > 0 00:00:00
return fromatDateTime(value)
} else {
// 00:00:00

View File

@ -39,8 +39,8 @@ module.exports = (options, ctx) => ({
path: '/categories/',
layout: 'Categories',
scopeLayout: 'Category'
},
],
}
]
}],
'@vuepress/search',
'@vuepress/plugin-nprogress',

View File

@ -1,4 +1,4 @@
/**
/**
* 时间格式化的方法
* 创建时间2019-10-08
* 作者刘晓北