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 }) => {