Commit 441a7275 by liimin

升级common与qiankun

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