diff --git a/.env.development b/.env.development index 42831e1..105d0c5 100644 --- a/.env.development +++ b/.env.development @@ -5,11 +5,12 @@ VUE_APP_TITLE = 数据中台系统 ENV = 'development' # 若依管理系统/开发环境 -# VUE_APP_BASE_API = 'http://39.101.188.84:9035' +VUE_APP_BASE_API = 'http://192.168.0.104:9035' # VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api' # VUE_APP_BASE_API = 'http://39.101.188.84:9035' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/login.js b/src/api/login.js index 649f59c..ad21fc7 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,7 +1,9 @@ import request from '@/utils/request' +import {encrypt} from '@/utils/jsencrypt' // 登录方法 export function login(username, password, code, uuid) { + password = encrypt(password); const data = { username, password, diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index f65eb01..5a9b202 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -103,6 +103,7 @@ export default { }).then(() => { this.$store.dispatch('LogOut').then(() => { location.href = '/tczzpc'; + // location.href = '/demo/tczzpc'; }) }).catch(() => {}); } diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue index 64e8f8c..4e3b3d2 100644 --- a/src/views/system/user/profile/resetPwd.vue +++ b/src/views/system/user/profile/resetPwd.vue @@ -1,13 +1,28 @@