This commit is contained in:
yuping
2023-01-11 10:19:37 +08:00
parent 414aa9831f
commit e1e9e7f721

View File

@@ -38,8 +38,9 @@ import router from "@/router";
console.log("版本2.0.2------------"); console.log("版本2.0.2------------");
const store = useStore(); const store = useStore();
const {path} = useRoute();
onMounted(() => { onMounted(() => {
getUserInfo(); path === '/login' || getUserInfo();
}); });
function getUserInfo() { function getUserInfo() {