|
@@ -126,24 +126,13 @@
|
|
}).catch((err: any) => {
|
|
}).catch((err: any) => {
|
|
Modal.error({
|
|
Modal.error({
|
|
title: () => '提示',
|
|
title: () => '提示',
|
|
- content: () => err.message + "2",
|
|
|
|
|
|
+ content: () => err.message,
|
|
});
|
|
});
|
|
setCaptcha();
|
|
setCaptcha();
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
state.loading = false;
|
|
state.loading = false;
|
|
message.destroy();
|
|
message.destroy();
|
|
})
|
|
})
|
|
- // if (err) {
|
|
|
|
- // Modal.error({
|
|
|
|
- // title: () => '提示',
|
|
|
|
- // content: () => err.message,
|
|
|
|
- // });
|
|
|
|
- // setCaptcha();
|
|
|
|
- // }
|
|
|
|
- // else {
|
|
|
|
- // message.success('登录成功!');
|
|
|
|
- // setTimeout(() => router.replace((route.query.redirect as string) ?? '/'));
|
|
|
|
- // }
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|