From 642916c030e51e423172785c7f968cc7d0156e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Mon, 4 Jul 2022 10:17:08 +0800 Subject: [PATCH] up --- src/settings.js | 2 +- src/store/modules/user.js | 6 +++--- src/utils/auth.js | 2 +- src/views/login/index.vue | 4 ++-- vue.config.js | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/settings.js b/src/settings.js index 4b997ba..93eb9f8 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,6 +1,6 @@ module.exports = { - title: '智能工具箱管理平台', + title: '四世同堂业务管理系统', /** * @type {boolean} true | false diff --git a/src/store/modules/user.js b/src/store/modules/user.js index c288974..1aef5cd 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -59,9 +59,9 @@ const actions = { const { data } = response; - console.log(response.access_token) - commit('SET_TOKEN', response.access_token) - setToken(response.access_token) + console.log(data.access_token) + commit('SET_TOKEN', data.access_token) + setToken(data.access_token) resolve() }).catch(error => { reject(error) diff --git a/src/utils/auth.js b/src/utils/auth.js index 059af18..74ba1ab 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -1,6 +1,6 @@ import Cookies from 'js-cookie' -const TokenKey = 'vue_admin_template_token' +const TokenKey = 'sishitongtang_token' export function getToken() { return Cookies.get(TokenKey) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a512798..f47ca33 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -9,7 +9,7 @@ label-position="left">
-

朗业前端初始化界面

+

四世同堂业务管理系统

@@ -64,7 +64,7 @@ return { loginForm: { username: 'admin', - password: 'Admin2022' + password: 'Admin2021' }, loginRules: { username: [{ diff --git a/vue.config.js b/vue.config.js index da718f1..a84e08e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,7 +6,7 @@ function resolve(dir) { return path.join(__dirname, dir) } -const name = defaultSettings.title || '朗业初始化项目' // page title +const name = defaultSettings.title || '四世同堂业务管理系统' // page title // If your port is set to 80, // use administrator privileges to execute the command line. @@ -46,7 +46,7 @@ module.exports = { //before: require('./mock/mock-server.js'), proxy: { [process.env.VUE_APP_BASE_API]: { - target: 'http://118.31.104.155:8082/', + target: 'https://sishitongtang.langye.net/', changeOrigin: true, //配置跨域 pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''