Commit 65e2853f by 李敏

Merge branch 'v3.9.0' into 'master'

V3.9.0

See merge request !3
2 parents f6f33520 e7a8ba2c
......@@ -12,7 +12,7 @@
"@sentry/vue": "^7.7.0",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^2.0.5",
"glsx-common": "^2.1.0",
"gltracker": "^0.1.3",
"md5": "^2.3.0",
"nprogress": "^0.2.0",
......@@ -3479,25 +3479,6 @@
"follow-redirects": "^1.14.0"
}
},
"node_modules/axios/node_modules/follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/babel-eslint": {
"version": "10.1.0",
"resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.1.0.tgz",
......@@ -7792,10 +7773,9 @@
}
},
"node_modules/follow-redirects": {
"version": "1.13.3",
"resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.3.tgz?cache=0&sync_timestamp=1614437038110&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.3.tgz",
"integrity": "sha1-5VmK1QF0wbxOhyMB6CrCzZf5Amc=",
"dev": true,
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"funding": [
{
"type": "individual",
......@@ -8254,9 +8234,9 @@
}
},
"node_modules/glsx-common": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.5.tgz",
"integrity": "sha512-4P5VobJFonr9avr21QVMFrY5yx1rfueyu8eVGCEGUL6B1Sp6yuv3q7F1HfsH6TyCNVThkGUlauNZnz7FiqRcIA==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz",
"integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==",
"dependencies": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -8265,9 +8245,9 @@
}
},
"node_modules/glsx-common/node_modules/qs": {
"version": "6.11.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
"version": "6.11.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz",
"integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==",
"dependencies": {
"side-channel": "^1.0.4"
},
......@@ -22454,13 +22434,6 @@
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
},
"dependencies": {
"follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
}
}
},
"babel-eslint": {
......@@ -25940,10 +25913,9 @@
}
},
"follow-redirects": {
"version": "1.13.3",
"resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.3.tgz?cache=0&sync_timestamp=1614437038110&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.3.tgz",
"integrity": "sha1-5VmK1QF0wbxOhyMB6CrCzZf5Amc=",
"dev": true
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
},
"for-in": {
"version": "1.0.2",
......@@ -26304,9 +26276,9 @@
}
},
"glsx-common": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.5.tgz",
"integrity": "sha512-4P5VobJFonr9avr21QVMFrY5yx1rfueyu8eVGCEGUL6B1Sp6yuv3q7F1HfsH6TyCNVThkGUlauNZnz7FiqRcIA==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.1.0.tgz",
"integrity": "sha512-wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -26315,9 +26287,9 @@
},
"dependencies": {
"qs": {
"version": "6.11.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
"version": "6.11.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz",
"integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==",
"requires": {
"side-channel": "^1.0.4"
}
......@@ -13,7 +13,7 @@
"@sentry/vue": "^7.7.0",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^2.0.5",
"glsx-common": "^2.1.0",
"gltracker": "^0.1.3",
"md5": "^2.3.0",
"nprogress": "^0.2.0",
......

28.8 KB | W: | H:

32.3 KB | W: | H:

src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,12 +4,13 @@
* @Author: limin
* @Date: 2021-09-18 09:35:02
* @LastEditors: limin
* @LastEditTime: 2023-04-11 10:21:58
* @LastEditTime: 2023-04-20 16:53:09
* @FilePath: \scrm-base\src\common\constants.js
*/
export default {
SCRM_BASE_SESSION: 'SCRM_BASE_SESSION',
SCRM_BASE_MENULIST: 'SCRM_BASE_MENULIST',
SCRM_BASE_CONFIG: 'SCRM_BASE_CONFIG',
SCRM_BASE_FUNCTIONAL_FLAG: 'function',
SCRM_BASE_USERTYPE: {
MERCHANT: '1',
......
......@@ -4,21 +4,26 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2023-04-18 18:37:49
* @LastEditTime: 2023-05-05 09:36:16
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
import { utils } from 'glsx-common'
import { constants } from '@/common'
import router from '../router'
const sw = !!+process.env.VUE_APP_CONFIG_SWITCH_LOCAL
export const fetchConfig = (isEnv = sw) => {
if (isEnv) {
return Promise.resolve(cfg)
}
const _config = utils.storage.getSession(constants.SCRM_BASE_CONFIG)
const _session = utils.storage.getSession(constants.SCRM_BASE_SESSION)
const _pathname = location.pathname
if (_config && _pathname !== '/') {
const _login_path = _session?.loginpath
const _constRoutes = router.constantRoutes.map(({ path }) => path)
// 如果存在配置缓存,并且当前路径不是用以区分不同产品的路由(oss:运营版,login:基础版,sp:服务商版).说明是刷新页面,则直接返回缓存的配置.另外如果当前路由与登录时缓存的路由一致,也直接返回缓存配置.
if ((_config && !_constRoutes.includes(_pathname)) || _pathname === _login_path || (_pathname === '/' && _login_path === '/login')) {
return Promise.resolve(_config)
}
return new Http({ headers: { refererurl: _pathname }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!