From a74e9ba7eab7ebccf52cf3f7c6c2efa75fc3f921 Mon Sep 17 00:00:00 2001
From: wangchengming <15110151257@163.com>
Date: Sun, 28 Sep 2025 21:30:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E7=BD=AE=E5=AF=86?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/user.js | 5 +++--
src/views/system/user/index.vue | 11 ++++++-----
vite.config.js | 3 +++
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index b5e3edd..72b7a0c 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -45,10 +45,11 @@ export function delUser(userId) {
}
// 用户密码重置
-export function resetUserPwd(userId, password) {
+export function resetUserPwd(userId, password, deptId) {
const data = {
userId,
- password
+ password,
+ deptId
}
return request({
url: '/system/user/resetPwd',
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 3d91fde..14375c6 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -59,12 +59,13 @@
@selection-change="handleSelectionChange">
-
-
+
+
-
+
@@ -459,7 +460,7 @@ function handleResetPwd(row) {
}
},
}).then(({ value }) => {
- resetUserPwd(row.userId, value).then(response => {
+ resetUserPwd(row.userId, value, row.deptId).then(response => {
proxy.$modal.msgSuccess("修改成功,新密码是:" + value)
})
}).catch(() => { })
diff --git a/vite.config.js b/vite.config.js
index 8254f80..99e7131 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -4,6 +4,9 @@ import createVitePlugins from './vite/plugins'
const baseUrl = 'http://43.143.229.145:9002/prod-api' // 后端接口
const analysisUrl = 'http://43.143.229.145:9002/ppt-analysis-api'
+// 生产环境
+// const baseUrl = 'http://8.140.172.21:9002/prod-api' // 后端接口
+// const analysisUrl = 'http://8.140.172.21:9002/ppt-analysis-api'
// https://vitejs.dev/config/
export default defineConfig(({ mode, command }) => {