module-menu-vue 0.3.8 → 0.3.9

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.8",
3
+ "version": "0.3.9",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -173,7 +173,7 @@ export default {
173
173
  if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
174
174
  await getLoginUrl()
175
175
  .then((res) => {
176
- if (res?.data?.data?.loginoutUrl) {
176
+ if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
177
177
  console.log('Login URL found:', res.data.data.loginoutUrl);
178
178
  window.location.replace(res.data.data.loginoutUrl);
179
179
  } else {
@@ -12,7 +12,7 @@ export const checkToken = async (token) => {
12
12
  sessionStorage.clear();
13
13
  getLoginUrl()
14
14
  .then((res) => {
15
- if (res?.data?.data?.loginoutUrl) {
15
+ if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
16
16
  console.log('Login URL found:', res.data.data.loginoutUrl);
17
17
  window.location.replace(res.data.data.loginoutUrl);
18
18
  } else {