Commit 663d9378 authored by 邓晓峰's avatar 邓晓峰

chore: 升级kit_global_config

parent 624c1a2b
Pipeline #40824 passed with stages
in 4 minutes 40 seconds
...@@ -21,6 +21,15 @@ export default { ...@@ -21,6 +21,15 @@ export default {
container: '#micro-container', container: '#micro-container',
activeRule: '/civbase/civ_pandawork', activeRule: '/civbase/civ_pandawork',
}, },
{
name: 'report',
entry: `//${window.location.hostname}:8345/report/workplatform`,
container: '#micro-container',
activeRule: '/civbase/report',
props: {
origin: `//${window.location.hostname}:8345`
}
},
// { // {
// name: 'civ_webgis', // name: 'civ_webgis',
// entry: `//${window.location.hostname}:8080/civ_webgis`, // entry: `//${window.location.hostname}:8080/civ_webgis`,
......
...@@ -16748,9 +16748,9 @@ ...@@ -16748,9 +16748,9 @@
} }
}, },
"kit_global_config": { "kit_global_config": {
"version": "1.0.39", "version": "1.0.40",
"resolved": "https://g.civnet.cn:4873/kit_global_config/-/kit_global_config-1.0.39.tgz", "resolved": "https://g.civnet.cn:4873/kit_global_config/-/kit_global_config-1.0.40.tgz",
"integrity": "sha512-15WzXI81DED8cCjK62v2KLkofeI5brZW6CtCrD1m6a8oAYw3UKCp+W8O3lBJV0RrokKWQPE6cE6dC9eNNl14QQ==", "integrity": "sha512-c6+jhOi/A/hmYDcaixjZROaS/r5catJFgpp2E9fWDsU/BAZ0Geyy5STbr7k4llWJkzOTz01rmYX5NLHNuAZnnA==",
"requires": { "requires": {
"@babel/runtime": "^7.10.5", "@babel/runtime": "^7.10.5",
"js-base64": "^3.5.2", "js-base64": "^3.5.2",
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"immutable": "^4.0.0-rc.12", "immutable": "^4.0.0-rc.12",
"js-base64": "^3.5.2", "js-base64": "^3.5.2",
"js-cookie": "^2.2.1", "js-cookie": "^2.2.1",
"kit_global_config": "^1.0.39", "kit_global_config": "^1.0.40",
"kit_logger": "^1.0.2", "kit_logger": "^1.0.2",
"kit_utils": "^1.3.11", "kit_utils": "^1.3.11",
"lodash": "4.17.11", "lodash": "4.17.11",
......
...@@ -53,7 +53,7 @@ export const initMicroApps = (loader, store) => { ...@@ -53,7 +53,7 @@ export const initMicroApps = (loader, store) => {
process.env.NODE_ENV !== 'production' ? process.env.NODE_ENV !== 'production' ?
micorConfig.dev : micorConfig.dev :
products; products;
console.log("reateStoreage.get('globalConfig')", createStoreage.get('globalConfig'))
registerMicroApps( registerMicroApps(
entrys.map(item => { entrys.map(item => {
item.loader = loader; item.loader = loader;
...@@ -181,12 +181,12 @@ export const defaultApp = () => { ...@@ -181,12 +181,12 @@ export const defaultApp = () => {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const config = createStoreage.get('globalConfig'); const config = createStoreage.get('globalConfig');
if (config && config.token) { if (config && config.token) {
debugger
const basePath =config.homepage !== '' && FILTER_FOLER_REG.test(config.homepage) ?'civweb4' :'civweb4'; const basePath =config.homepage !== '' && FILTER_FOLER_REG.test(config.homepage) ?'civweb4' :'civweb4';
if(config && config.home) { if(config && config.home) {
setDefaultMountApp(`/civbase/${config.home.path.replace(/^\//, '')}`); setDefaultMountApp(`/civbase/${config.home.path.replace(/^\//, '')}`);
} else { } else {
debugger
const homepage = _.isNull(config.homepage) ? '/index': '/' + config.homepage; const homepage = _.isNull(config.homepage) ? '/index': '/' + config.homepage;
setDefaultMountApp(`/${pkg.name.toLocaleLowerCase()}/${basePath}${homepage}`); setDefaultMountApp(`/${pkg.name.toLocaleLowerCase()}/${basePath}${homepage}`);
createStoreage.set('init_web4', true) createStoreage.set('init_web4', true)
......
...@@ -601,6 +601,7 @@ class Login { ...@@ -601,6 +601,7 @@ class Login {
generateType: params.getParams('generateType') || '' generateType: params.getParams('generateType') || ''
}) })
.then(response => { .then(response => {
debugger
self.globalConfig.layout = 'blank'; self.globalConfig.layout = 'blank';
if (response && response.token) { if (response && response.token) {
...@@ -625,7 +626,6 @@ class Login { ...@@ -625,7 +626,6 @@ class Login {
self.globalConfig.userInfo = Object.assign( self.globalConfig.userInfo = Object.assign(
{}, {},
response, response,
); );
if(response.hasOwnProperty('data')) { if(response.hasOwnProperty('data')) {
self.globalConfig.userInfo = { self.globalConfig.userInfo = {
...@@ -645,6 +645,7 @@ class Login { ...@@ -645,6 +645,7 @@ class Login {
expires: date, expires: date,
path: '/', path: '/',
}) })
debugger
// self.globalConfig.Industry = industry; // self.globalConfig.Industry = industry;
self.updateConfig && self.updateConfig(self.globalConfig); self.updateConfig && self.updateConfig(self.globalConfig);
const loginSite = {}; const loginSite = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment