|
@@ -78,11 +78,12 @@ export default defineComponent({
|
|
|
|
|
|
// route.query?.redirect ||
|
|
|
const toPath = decodeURIComponent('/' as string);
|
|
|
-
|
|
|
+ console.log(toPath,'toPath')
|
|
|
message.success('登录成功,即将进入系统');
|
|
|
- if (route.name === LOGIN_NAME) {
|
|
|
- router.replace('/');
|
|
|
- } else router.replace(toPath);
|
|
|
+ router.replace(toPath)
|
|
|
+ // if (route.name === LOGIN_NAME) {
|
|
|
+ // router.replace('/');
|
|
|
+ // } else router.replace(toPath);
|
|
|
} catch (e: any) {
|
|
|
console.log(e, 'e');
|
|
|
} finally {
|