From 5637e7930a5b925da83bc1338791cff8497861e6 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 29 Apr 2022 17:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AD=89=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/setting/list/info.vue | 2 +- src/pages/student/list/index.vue | 468 +++++++++++++++---------------- src/store/modules/user.js | 2 +- vue.config.js | 14 - 4 files changed, 233 insertions(+), 253 deletions(-) diff --git a/src/pages/setting/list/info.vue b/src/pages/setting/list/info.vue index 446db5c..127cd42 100644 --- a/src/pages/setting/list/info.vue +++ b/src/pages/setting/list/info.vue @@ -211,7 +211,7 @@ width="30%"> - +
diff --git a/src/pages/student/list/index.vue b/src/pages/student/list/index.vue index 145d79f..44cd8aa 100644 --- a/src/pages/student/list/index.vue +++ b/src/pages/student/list/index.vue @@ -1,250 +1,244 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 7d5d3e4..bf51025 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -92,7 +92,7 @@ export default { return new Promise((resolve, reject) => { util.local.remove(Setting.storeKey); util.local.remove(Setting.tokenKey); - if (state.fromClient) { + if (util.cookies.get('serverLogin')) { util.cookies.remove('serverLogin') location.href = Setting.isDev ? `http://192.168.31.125:8082/#/` diff --git a/vue.config.js b/vue.config.js index d845b94..e9d6080 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,12 +1,3 @@ -// 引入等比适配插件 -const px2rem = require("postcss-px2rem"); - -// 配置基本大小 -const postcss = px2rem({ - // 基准大小 baseSize,需要和rem.js中相同 - remUnit: 16 -}); - const Setting = require('./src/setting.env') // 使用等比适配插件 @@ -14,11 +5,6 @@ module.exports = { lintOnSave: true, css: { loaderOptions: { - postcss: { - plugins: [ - postcss - ] - }, sass: { prependData: `@import "@/styles/var.scss";` },