This commit is contained in:
zk
2023-12-27 18:00:39 +08:00
parent 63eb01d641
commit 36f484d028
13 changed files with 231 additions and 136 deletions
+6
View File
@@ -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>