update
This commit is contained in:
@@ -99,6 +99,8 @@
|
||||
import { t } from '/@/hooks/locales/useLocales.ts';
|
||||
import { encipher } from '/@/utils/jsencrypt';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { getAuthCache } from '/@/utils/auth.ts';
|
||||
import { TOKEN_KEY } from '/@/enum/cacheEnum.ts';
|
||||
|
||||
const router = useRouter();
|
||||
// console.log(t('login'));
|
||||
@@ -203,6 +205,10 @@
|
||||
onMounted(() => {
|
||||
//加载验证码
|
||||
handleChangeCheckCode();
|
||||
let token = getAuthCache(TOKEN_KEY);
|
||||
if (token) {
|
||||
router.push({ path: '/home' });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user