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";` },