diff --git a/src/components/common-icon/common-icon.vue b/src/components/common-icon/common-icon.vue index 768fa1b0..a5285c40 100644 --- a/src/components/common-icon/common-icon.vue +++ b/src/components/common-icon/common-icon.vue @@ -6,7 +6,7 @@ import Icons from '_c/icons' export default { name: 'CommonIcon', - components: {Icons}, + components: { Icons }, props: { type: { type: String, diff --git a/src/components/tables/tables.vue b/src/components/tables/tables.vue index fa2c235d..8b9d461c 100644 --- a/src/components/tables/tables.vue +++ b/src/components/tables/tables.vue @@ -176,7 +176,7 @@ export default { 'on-save-edit': (params) => { this.value[params.row.initRowIndex][params.column.key] = this.edittingText this.$emit('input', this.value) - this.$emit('on-save-edit', Object.assign(params, {value: this.edittingText})) + this.$emit('on-save-edit', Object.assign(params, { value: this.edittingText })) this.edittingCellId = '' } } diff --git a/src/mock/login.js b/src/mock/login.js index 9e84a551..94d783b8 100644 --- a/src/mock/login.js +++ b/src/mock/login.js @@ -18,7 +18,7 @@ const USER_MAP = { export const login = req => { req = JSON.parse(req.body) - return {token: USER_MAP[req.userName].token} + return { token: USER_MAP[req.userName].token } } export const getUserInfo = req => { diff --git a/src/store/module/user.js b/src/store/module/user.js index e1aa311e..34fffbfe 100644 --- a/src/store/module/user.js +++ b/src/store/module/user.js @@ -74,7 +74,7 @@ export default { }, actions: { // 登录 - handleLogin ({ commit }, {userName, password}) { + handleLogin ({ commit }, { userName, password }) { userName = userName.trim() return new Promise((resolve, reject) => { login({ diff --git a/src/view/components/tables/tables.vue b/src/view/components/tables/tables.vue index 99bcc675..fbe3d1d1 100644 --- a/src/view/components/tables/tables.vue +++ b/src/view/components/tables/tables.vue @@ -18,9 +18,9 @@ export default { data () { return { columns: [ - {title: 'Name', key: 'name', sortable: true}, - {title: 'Email', key: 'email', editable: true}, - {title: 'Create-Time', key: 'createTime'}, + { title: 'Name', key: 'name', sortable: true }, + { title: 'Email', key: 'email', editable: true }, + { title: 'Create-Time', key: 'createTime' }, { title: 'Handle', key: 'handle', diff --git a/src/view/single-page/home/example.vue b/src/view/single-page/home/example.vue index 5fb34650..ff06acd2 100755 --- a/src/view/single-page/home/example.vue +++ b/src/view/single-page/home/example.vue @@ -52,36 +52,36 @@ export default { name: '运营商/网络服务', type: 'line', stack: '总量', - areaStyle: {normal: { + areaStyle: { normal: { color: '#2d8cf0' - }}, + } }, data: [120, 132, 101, 134, 90, 230, 210] }, { name: '银行/证券', type: 'line', stack: '总量', - areaStyle: {normal: { + areaStyle: { normal: { color: '#10A6FF' - }}, + } }, data: [257, 358, 278, 234, 290, 330, 310] }, { name: '游戏/视频', type: 'line', stack: '总量', - areaStyle: {normal: { + areaStyle: { normal: { color: '#0C17A6' - }}, + } }, data: [379, 268, 354, 269, 310, 478, 358] }, { name: '餐饮/外卖', type: 'line', stack: '总量', - areaStyle: {normal: { + areaStyle: { normal: { color: '#4608A6' - }}, + } }, data: [320, 332, 301, 334, 390, 330, 320] }, { @@ -94,9 +94,9 @@ export default { position: 'top' } }, - areaStyle: {normal: { + areaStyle: { normal: { color: '#398DBF' - }}, + } }, data: [820, 645, 546, 745, 872, 624, 258] } ] diff --git a/src/view/single-page/home/home.vue b/src/view/single-page/home/home.vue index 02400228..7339a912 100644 --- a/src/view/single-page/home/home.vue +++ b/src/view/single-page/home/home.vue @@ -53,11 +53,11 @@ export default { { title: '新增页面', icon: 'md-map', count: 14, color: '#9A66E4' } ], pieData: [ - {value: 335, name: '直接访问'}, - {value: 310, name: '邮件营销'}, - {value: 234, name: '联盟广告'}, - {value: 135, name: '视频广告'}, - {value: 1548, name: '搜索引擎'} + { value: 335, name: '直接访问' }, + { value: 310, name: '邮件营销' }, + { value: 234, name: '联盟广告' }, + { value: 135, name: '视频广告' }, + { value: 1548, name: '搜索引擎' } ], barData: { Mon: 13253, diff --git a/tests/unit/.eslintrc.js b/tests/unit/.eslintrc.js index 74fe6270..8038afe9 100644 --- a/tests/unit/.eslintrc.js +++ b/tests/unit/.eslintrc.js @@ -5,4 +5,4 @@ module.exports = { rules: { 'import/no-extraneous-dependencies': 'off' } -} \ No newline at end of file +}