From b59d8caad2bc9ee36bd7148d27a4e19fae806190 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Thu, 17 Nov 2022 10:03:04 +0800 Subject: [PATCH] change sth --- jsconfig.json | 7 ++++- package.json | 3 ++- src/App.vue | 20 ++------------ src/main.js | 33 ++++++++++++----------- src/permission.js | 42 +++++++++++++++++++++++++++++ src/router/index.js | 6 +++++ src/store/index.js | 24 +---------------- src/store/modules/app.js | 26 ++++++++++++++++++ src/views/layout/Header.vue | 8 +++--- src/views/mobile/ListDetails.vue | 10 +++---- src/views/mobile/Login.vue | 45 +++++++++++++++++++++++--------- src/views/mobile/RankingList.vue | 11 ++++---- src/views/mobile/Recommend.vue | 3 ++- src/views/mobile/Signup.vue | 5 ++-- 14 files changed, 152 insertions(+), 91 deletions(-) create mode 100644 src/permission.js create mode 100644 src/store/modules/app.js diff --git a/jsconfig.json b/jsconfig.json index 4aafc5f..cfa4dd9 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "experimentalDecorators": true, "target": "es5", "module": "esnext", "baseUrl": "./", @@ -15,5 +16,9 @@ "dom.iterable", "scripthost" ] - } + }, + "vueCompilerOptions": { + "target": 2.7, + "experimentalDisableTemplateSupport": true, + }, } diff --git a/package.json b/package.json index 156a84a..9e9e3c3 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "vue-clipboard2": "^0.3.3", "vue-infinite-scroll": "^2.0.2", "vue-router": "^3.5.1", - "vuex": "^3.6.2" + "vuex": "^3.6.2", + "vuex-module-decorators": "^2.0.0" }, "devDependencies": { "@babel/core": "^7.12.16", diff --git a/src/App.vue b/src/App.vue index 0855c7e..dface49 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,28 +4,12 @@