module-menu-vue 0.3.7 → 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.7",
3
+ "version": "0.3.9",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -33,6 +33,8 @@ import { userMenuIcon } from './constant.js'
33
33
  import { getUserName, getIsHaveSystemManagementPermissionFlag } from './../Util/userInfo.js'
34
34
  import { integrationLogout, getSysUrl } from './service.js'
35
35
  import {getMenuList} from '../Menu/service.js'
36
+ import { getLoginUrl } from '../Util/permessionUtils.js';
37
+
36
38
  export default {
37
39
  name: 'UserInfo',
38
40
  data () {
@@ -171,7 +173,7 @@ export default {
171
173
  if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
172
174
  await getLoginUrl()
173
175
  .then((res) => {
174
- if (res?.data?.data?.loginoutUrl) {
176
+ if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
175
177
  console.log('Login URL found:', res.data.data.loginoutUrl);
176
178
  window.location.replace(res.data.data.loginoutUrl);
177
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 {