module-menu-vue 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu-vue",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -175,15 +175,15 @@ export default {
175
175
  .then((res) => {
176
176
  if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
177
177
  console.log('Login URL found:', res.data.data.loginoutUrl);
178
- window.location.replace(res.data.data.loginoutUrl);
178
+ window.location.href = res.data.data.loginoutUrl;
179
179
  } else {
180
180
  console.log('No login URL found, redirect to default login page.');
181
- window.location.replace('/admin-ui/login');
181
+ window.location.href = res.data.data.loginoutUrl;
182
182
  }
183
183
  })
184
184
  .catch((e) => {
185
185
  console.log('GetLoginUrl error: ', e);
186
- window.location.replace('/admin-ui/login');
186
+ window.location.href = '/admin-ui/login';
187
187
  });
188
188
  return;
189
189
  } else if (this.stash === 'GZW') {
@@ -14,15 +14,15 @@ export const checkToken = async (token) => {
14
14
  .then((res) => {
15
15
  if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
16
16
  console.log('Login URL found:', res.data.data.loginoutUrl);
17
- window.location.replace(res.data.data.loginoutUrl);
17
+ window.location.href = res.data.data.loginoutUrl;
18
18
  } else {
19
19
  console.log('No login URL found, redirect to default login page.');
20
- window.location.replace('/admin-ui/login');
20
+ window.location.href = res.data.data.loginoutUrl;
21
21
  }
22
22
  })
23
23
  .catch((e) => {
24
24
  console.log('GetLoginUrl error: ', e);
25
- window.location.replace('/admin-ui/login');
25
+ window.location.href = '/admin-ui/login';
26
26
  });
27
27
  }});
28
28
  } else {