feat: bug修改

dev_1.0.0
JINGYJ 1 year ago
parent e4c519250c
commit 865bd083ef

@ -92,8 +92,8 @@ export function downloadFile(id) {
* @returns * @returns
*/ */
export const resetPW = (data?: object) => { export const resetPW = (data?: object) => {
return http.request<Result>("get", "/know-sub/user/resetPW", { return http.request<Result>("put", "/know-sub/user/resetPW", {
params: data data
}); });
}; };

@ -226,7 +226,8 @@ const submitForm = (formEl: FormInstance | undefined) => {
if (valid) { if (valid) {
// console.log(valid); // console.log(valid);
resetPW({ resetPW({
id: passwordForm.id id: passwordForm.id,
password: passwordForm.password
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
message("重置成功", { type: "success" }); message("重置成功", { type: "success" });
@ -298,6 +299,7 @@ const deleteName = (type: any) => {
}; };
// //
const handleRolePermission = row => { const handleRolePermission = row => {
console.log(row);
roleSetVisible.value = true; roleSetVisible.value = true;
}; };
// //
@ -344,7 +346,7 @@ onMounted(() => {
<div class="account_seach" v-if="seachForm.status === '1'"> <div class="account_seach" v-if="seachForm.status === '1'">
<el-form :model="accountForm"> <el-form :model="accountForm">
<el-row> <el-row>
<el-form-item label="用户名"> <el-form-item label="名">
<el-input v-model="accountForm.userName" placeholder="请输入" /> <el-input v-model="accountForm.userName" placeholder="请输入" />
</el-form-item> </el-form-item>
<el-form-item class="ml-4" label="角色"> <el-form-item class="ml-4" label="角色">

@ -46,7 +46,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
proxy: { proxy: {
// 类型: Record<string, string | ProxyOp 为开发服务器配置自定义代理规则 // 类型: Record<string, string | ProxyOp 为开发服务器配置自定义代理规则
"/know-sub/": { "/know-sub/": {
target: "http://192.168.10.138:1180/", target: "http://192.168.10.25:9201/",
changeOrigin: true, changeOrigin: true,
secure: false secure: false
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow

Loading…
Cancel
Save