|
|
@@ -108,7 +108,7 @@ const getVerifySmsCode = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
-/*const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
+const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
if (!formEl) return;
|
|
|
const submitType = showVerifySms.value ? 2 : 1;
|
|
|
// 1普通登录 2短信登录
|
|
|
@@ -128,7 +128,7 @@ const getVerifySmsCode = () => {
|
|
|
let { code, msg } = res;
|
|
|
if (code === 0 || code === 3) {
|
|
|
// 存储输入信息
|
|
|
- /!*const { storageExpires } = commonSetting;
|
|
|
+ /*const { storageExpires } = commonSetting;
|
|
|
if (formData.agree) {
|
|
|
storage.setCookie(
|
|
|
"loginRemember",
|
|
|
@@ -151,7 +151,7 @@ const getVerifySmsCode = () => {
|
|
|
"0",
|
|
|
storageExpires * 24 * 60 * 60
|
|
|
);
|
|
|
- }*!/
|
|
|
+ }*/
|
|
|
message("登录成功,即将进入系统", {
|
|
|
type: "success",
|
|
|
duration: 1000,
|
|
|
@@ -168,9 +168,9 @@ const getVerifySmsCode = () => {
|
|
|
);
|
|
|
console.log(route.name);
|
|
|
if (route.name === "Login") {
|
|
|
- /!*initRouter().then(() => {
|
|
|
+ /*initRouter().then(() => {
|
|
|
router.push(getTopMenu(true).path);
|
|
|
- });*!/
|
|
|
+ });*/
|
|
|
// 全部采取静态路由模式
|
|
|
usePermissionStoreHook().handleWholeMenus([]);
|
|
|
addPathMatch();
|
|
|
@@ -218,9 +218,9 @@ const getVerifySmsCode = () => {
|
|
|
.finally(() => (loading.value = false));
|
|
|
}
|
|
|
});
|
|
|
-};*/
|
|
|
+};
|
|
|
|
|
|
-const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
+/*const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
if (!formEl) return;
|
|
|
await formEl.validate(valid => {
|
|
|
if (valid) {
|
|
|
@@ -237,7 +237,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
loading.value = false;
|
|
|
}
|
|
|
});
|
|
|
-};
|
|
|
+};*/
|
|
|
|
|
|
const immediateDebounce: any = debounce(
|
|
|
formRef => onLogin(formRef),
|