Showing
3 changed files
with
15 additions
and
2 deletions
.husky/lintstagedrc.js
0 → 100644
| 1 | +module.exports = { | |
| 2 | + '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'], | |
| 3 | + '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'], | |
| 4 | + 'package.json': ['prettier --write'], | |
| 5 | + '*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix'], | |
| 6 | + '*.{scss,less,styl,html}': ['stylelint --fix', 'prettier --write'], | |
| 7 | + '*.md': ['prettier --write'], | |
| 8 | +}; | ... | ... |
.husky/pre-commit
0 → 100755
| ... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | 46 | <div v-else style="display: flex; justify-content: center; align-items: center"> |
| 47 | - <div style="position: relative; left: 0rem; top: 3rem">暂无数据</div> | |
| 47 | + <div style="position: relative; left: 0; top: 3rem">暂无数据</div> | |
| 48 | 48 | </div> |
| 49 | 49 | </Spin> |
| 50 | 50 | </div> |
| ... | ... | @@ -78,7 +78,7 @@ |
| 78 | 78 | defineEmits(['register']); |
| 79 | 79 | const heightNum = ref(800); |
| 80 | 80 | |
| 81 | - let currentRecord: ExecuteReportRecord = {}; | |
| 81 | + let currentRecord: ExecuteReportRecord = {} as unknown as ExecuteReportRecord; | |
| 82 | 82 | |
| 83 | 83 | const chartInstance = ref< |
| 84 | 84 | { device: string; name: string; attributes: string[]; active?: string }[] |
| ... | ... | @@ -265,6 +265,7 @@ |
| 265 | 265 | </script> |
| 266 | 266 | <style lang="less" scoped> |
| 267 | 267 | @import url('./ReportPreviewModal.less'); |
| 268 | + | |
| 268 | 269 | .chart-style { |
| 269 | 270 | display: flex; |
| 270 | 271 | flex-wrap: wrap; | ... | ... |