Commit 441a7275 by liimin

升级common与qiankun

1 parent 72290d5e
......@@ -2810,9 +2810,9 @@
},
"dependencies": {
"follow-redirects": {
"version": "1.15.1",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
}
}
},
......@@ -4840,8 +4840,8 @@
},
"de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz",
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
"integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",
"dev": true
},
"debug": {
......@@ -6657,9 +6657,9 @@
}
},
"glsx-common": {
"version": "2.0.0-beta",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.0-beta.tgz",
"integrity": "sha512-5qC9IHAj+WgBqgnVMtiRvlaxWKICeaLwbL4tfNhQ7oH/bUkMPfH14itaKX2QaE28TXysIPGZyh1pQ/wwTzq9rA==",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.4.tgz",
"integrity": "sha512-EgWFYUmDk6axzEi6uq5FmYd8nPD7DDg2Vi5kepNMX7YS/cg4bLNBdGCp4iZe2SYFIx3U5O7yKf9fI/aWewCVxw==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -7289,9 +7289,9 @@
}
},
"import-html-entry": {
"version": "1.12.0",
"resolved": "https://registry.npmjs.org/import-html-entry/-/import-html-entry-1.12.0.tgz",
"integrity": "sha512-wloMEMwupKJ8DWvKsEzJTXhHVieEH8ylu9ebeQg7T9JUsPTo0Zwa1EkuSKgKJvOiA2MxAFkeYYvd/E2pKiFtWQ==",
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/import-html-entry/-/import-html-entry-1.14.0.tgz",
"integrity": "sha512-CQQMV+2rxHCLMSXsajV1cjT1g6xi3ujMAPnGwR96xHaN5/JEVIOUGkM7LDRn73dk8E8NaHmOf3rvPPExPPe1xw==",
"requires": {
"@babel/runtime": "^7.7.2"
}
......@@ -9600,7 +9600,7 @@
"normalize-wheel": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
"integrity": "sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA=="
},
"npm-run-path": {
"version": "2.0.2",
......@@ -11932,15 +11932,14 @@
"dev": true
},
"qiankun": {
"version": "2.7.4",
"resolved": "https://registry.npmjs.org/qiankun/-/qiankun-2.7.4.tgz",
"integrity": "sha512-aihz6ue94CdalEBHBpJGD2UjY30Er0FEy8KxQuxCuEffOFvCXrvBsUm5UkfW32pu4AmAD/yB+lxad0Vzt6l5KQ==",
"version": "2.8.4",
"resolved": "https://registry.npmjs.org/qiankun/-/qiankun-2.8.4.tgz",
"integrity": "sha512-9MCKTJZpb0L7CcWC80jNr4TZz9m2Pvh9QWHNKJ7vZAEUMRZBbMl3+wCV1VBcUJJIgfRMU5G+ksoW142rMFA0Ew==",
"requires": {
"@babel/runtime": "^7.10.5",
"import-html-entry": "^1.9.0",
"import-html-entry": "^1.14.0",
"lodash": "^4.17.11",
"single-spa": "^5.9.2",
"tslib": "^1.10.0"
"single-spa": "^5.9.2"
}
},
"qs": {
......@@ -14554,9 +14553,9 @@
"dev": true
},
"vue": {
"version": "2.6.12",
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz?cache=0&sync_timestamp=1614614488830&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.12.tgz",
"integrity": "sha1-9evU+mvShpQD4pqJau1JBEVskSM="
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz",
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ=="
},
"vue-eslint-parser": {
"version": "7.6.0",
......@@ -14635,9 +14634,9 @@
}
},
"vue-template-compiler": {
"version": "2.6.12",
"resolved": "https://registry.npm.taobao.org/vue-template-compiler/download/vue-template-compiler-2.6.12.tgz?cache=0&sync_timestamp=1597927366321&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-template-compiler%2Fdownload%2Fvue-template-compiler-2.6.12.tgz",
"integrity": "sha1-lH7XGWdEyKUoXr4SM/6WBDf8xX4=",
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz",
"integrity": "sha512-KIq15bvQDrcCjpGjrAhx4mUlyyHfdmTaoNfeoATHLAiWB+MU3cx4lOzMwrnUh9cCxy0Lt1T11hAFY6TQgroUAA==",
"dev": true,
"requires": {
"de-indent": "^1.0.2",
......
......@@ -13,11 +13,11 @@
"@sentry/vue": "^7.7.0",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^2.0.0-beta",
"glsx-common": "^2.0.4",
"gltracker": "^0.1.3",
"md5": "^2.3.0",
"nprogress": "^0.2.0",
"qiankun": "^2.7.4",
"qiankun": "^2.8.4",
"vue": "2.6.11",
"vue-router": "^3.5.3",
"vuex": "^3.4.0"
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2022-11-04 10:22:15
* @LastEditTime: 2022-11-10 17:07:01
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js')
......@@ -15,7 +15,7 @@ export const fetchConfig = (isEnv = sw) => {
return Promise.resolve(cfg)
}
return new Http({ headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://oss-config.dev.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
return new Http({ headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -38,15 +38,13 @@ const auth = {
const { sessionId, permissionMerchantIds, channelType, entmicroId, workUserId, uuid, loginList, ...merchantItems } = merchant
let { code, message, data, menus, sessionData } = await api.app.permission({ productCode, sessionId })
if (code == response.code_success_value) {
menus = data[0].products[0].merchantProTreeResponses
if (menus && menus.length) {
menus = data[0]?.products[0]?.merchantProTreeResponses
if (menus?.length) {
data[0].active = true
sessionData = { ...merchantItems, loginList: data, token: sessionId }
// dispatch('setSession', { ...merchantItems, loginList: data, token: sessionId })
} else {
const { CODE, MESSAGE } = constants.SCRM_BASE_ERRORS.NO_PERMISSION_MENUS
code = CODE
message = MESSAGE
;({ CODE: code, MESSAGE: message } = constants.SCRM_BASE_ERRORS.NO_PERMISSION_MENUS)
}
}
return { code, message, menus, sessionData }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!