fix: 修复注册自动跳转到登录页面问题

This commit is contained in:
陈淳
2024-04-08 14:23:22 +08:00
parent 3f2f89768b
commit 586775c8ff

View File

@@ -171,15 +171,15 @@ const currentUserInfo=computed(()=>{
// 注册 // 注册
const registerFun = async (params) => { const registerFun = async (params) => {
try { // try {
await userRegister(params); await userRegister(params);
ElMessage({ ElMessage({
message: `恭喜!${params.userName},注册成功!请登录!`, message: `恭喜!${params.userName},注册成功!请登录!`,
type: "success", type: "success",
}); });
} catch (error) { // } catch (error) {
console.log(error); // console.log(error);
} // }
}; };
return { return {