From 034267534fe3a2a94f24ffdd21cb40f87dae5d0d Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Thu, 14 Dec 2023 14:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=AE=E6=94=B9=E5=8A=A0?= =?UTF-8?q?=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- src/api/login.js | 2 + src/layout/components/Navbar.vue | 1 + src/views/system/user/profile/resetPwd.vue | 55 ++++++++++++++++------ vue.config.js | 2 + 5 files changed, 47 insertions(+), 16 deletions(-) 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 @@