|
@@ -20,21 +20,6 @@ const user = ref(userStore.getUserInfo);
|
|
|
|
|
|
if (user.value != null) {
|
|
|
globalProperties.$routeActive = true;
|
|
|
- router.push({path: "/login", query: {}})
|
|
|
-} else {
|
|
|
- let redirectUrl = "";
|
|
|
-
|
|
|
- const url = location.href;
|
|
|
-
|
|
|
- if (url.indexOf("#") != -1) {
|
|
|
- const index = url.indexOf("#");
|
|
|
- const splits = [url.slice(0, index), url.slice(index + 1)];
|
|
|
-
|
|
|
- redirectUrl = splits[1];
|
|
|
- }
|
|
|
-
|
|
|
- if (!redirectUrl || redirectUrl==='/')
|
|
|
- router.push({path: "/login", query: {}})
|
|
|
}
|
|
|
|
|
|
</script>
|