Skip to content

Commit 3a693c6

Browse files
committed
fix: eslint cdoe
1 parent 231fa13 commit 3a693c6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

components/PageInfo.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<script>
2424
import AccessNumber from './Valine/AccessNumber'
25-
//引入时间格式化js文件
25+
// 引入时间格式化js文件
2626
import { fromatDateTime } from '@theme/util/formatDate.js'
2727
2828
export default {
@@ -65,9 +65,8 @@ export default {
6565
const m = Number(value.substr(14, 2))
6666
const s = Number(value.substr(17, 2))
6767
// 判断时分秒是不是 00:00:00 (如果是用户手动输入的00:00:00也会不显示)
68-
// 时分秒有一个> 0 就说明用户输入一个非 00:00:00 的时分秒
6968
if (h > 0 || m > 0 || s > 0) {
70-
69+
// 时分秒有一个> 0 就说明用户输入一个非 00:00:00 的时分秒
7170
return fromatDateTime(value)
7271
} else {
7372
// 用户没有输入或者输入了 00:00:00

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ module.exports = (options, ctx) => ({
3939
path: '/categories/',
4040
layout: 'Categories',
4141
scopeLayout: 'Category'
42-
},
43-
],
42+
}
43+
]
4444
}],
4545
'@vuepress/search',
4646
'@vuepress/plugin-nprogress',

util/formatDate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* 时间格式化的方法
33
* 创建时间:2019-10-08
44
* 作者:刘晓北

0 commit comments

Comments
 (0)