|
@@ -86,10 +86,10 @@ router.beforeEach((to, from, next) => {
|
|
|
if (to.path.match(/^\/login\/.+$/)) {
|
|
|
next();
|
|
|
} else {
|
|
|
+ if (!localStorage.getItem("domain")) {
|
|
|
+ alert("地址出错,找不到机构!请关闭应用后重试!");
|
|
|
+ }
|
|
|
if (!window.sessionStorage.getItem("token")) {
|
|
|
- if (!localStorage.getItem("domain")) {
|
|
|
- alert("地址出错,找不到机构!请关闭应用后重试!");
|
|
|
- }
|
|
|
next({ path: loginPath });
|
|
|
} else {
|
|
|
next();
|