Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
v_yutyi committed Dec 10, 2021
1 parent 852b877 commit 74e46f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
}
},
"dependencies": {
"bk-magic-vue": "2.2.16",
"art-template": "4.1.0",
"axios": "0.18.0",
"bk-magic-vue": "2.2.16",
"connect-history-api-fallback": "1.6.0",
"cookie": "0.4.0",
"cookie-parser": "1.4.4",
Expand All @@ -52,6 +52,7 @@
"express-art-template": "1.0.1",
"intl-tel-input": "16.0.0",
"jsonp": "0.2.1",
"node-sass": "4.14.1",
"query-string": "6.5.0",
"sortablejs": "1.10.1",
"url-parse": "1.4.7",
Expand Down Expand Up @@ -123,7 +124,6 @@
"markdown-it-container": "2.0.0",
"mini-css-extract-plugin": "0.6.0",
"moment": "2.24.0",
"node-sass": "4.13.0",
"npm": "6.9.0",
"open": "6.3.0",
"opencollective": "1.0.3",
Expand Down Expand Up @@ -161,7 +161,7 @@
},
"engines": {
"node": ">= 12.3.1",
"npm": ">= 6.0.0"
"npm": ">= 6.0.0 < 7"
},
"resolutions": {
"node-gyp": "8.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/src/views/catalog/dataUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ export default {
if (60 <= row.required_time && row.required_time < 3600) {
const time = row.required_time / 60;
const min = time.toString().split('.')[0];
const sec = parseInt(time.toString().split('.')[1][0]) * 6;
const sec = parseInt(time.toString().split('.')[1][0], 10) * 6;
return `${min}${this.$t('分钟')}${sec}${this.$t('秒')}`;
}
if (3600 <= row.required_time) {
const time = row.required_time / 3600;
const hour = time.toString().split('.')[0];
const min = parseInt(time.toString().split('.')[1][0]) * 6;
const min = parseInt(time.toString().split('.')[1][0], 10) * 6;
return `${hour}${this.$t('小时')}${min}${this.$t('分钟')}`;
}
},
Expand Down

0 comments on commit 74e46f4

Please sign in to comment.