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