From 1172dc260c14c2dc05bf5bcc37fbc6fe8c589b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Dchenxuelian=E2=80=9C?= <“chenxuelian@cjiedata.com”> Date: Sun, 4 Dec 2022 16:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BA=8C=E6=AC=A1=E5=B0=81?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 17 +++++++++-------- main.js | 7 +++---- pages/index/index.vue | 8 +++++++- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ccd2301..2652a8c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,15 +29,16 @@ module.exports = { } ], 'vue/max-attributes-per-line': [ - 2, - { - singleline: 10, - multiline: { - max: 1, - allowFirstLine: true + 'error', + { + 'singleline': { + 'max': 1 + }, + 'multiline': { + 'max': 1 } - } - ], + }, + ], 'vue/singleline-html-element-content-newline': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/require-v-for-key': 'off', diff --git a/main.js b/main.js index 0118bf5..0edb4e4 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,5 @@ import App from './App' - -//引入uView-ui组件库(注意这两行要放在 import Vue 之后) +// 引入uView-ui组件库(注意这两行要放在 import Vue 之后) import uView from 'uview-ui' Vue.use(uView) @@ -9,7 +8,7 @@ import Vue from 'vue' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ - ...App + ...App }) app.$mount() // #endif @@ -22,4 +21,4 @@ export function createApp() { app } } -// #endif \ No newline at end of file +// #endif diff --git a/pages/index/index.vue b/pages/index/index.vue index 469d8ee..9f179b8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,7 +5,9 @@