Commit 501b1b24 authored by 邓晓峰's avatar 邓晓峰

fix: micro load defaultMountApp bug

parent 41b6ba90
Pipeline #26841 skipped with stages
/* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
const proxyURL = 'http://192.168.10.150:8777';
const proxyURL = 'https://panda-water.com';
module.exports = {
assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './',
dev: {
......
......@@ -165,6 +165,7 @@ export const defaultApp = () => {
// eslint-disable-next-line no-undef
const config = createStoreage.get('globalConfig');
if (config && config.token) {
debugger
// const startWith = config.homepage ? config.homepage.split('/') : [];
// console.log(findPathByLeafId(config.homepage, '', 'url'))
const basePath =
......@@ -174,7 +175,7 @@ export const defaultApp = () => {
const defaultURL =
config.homepage === ''
? `/${pkg.name.toLocaleLowerCase()}/${basePath}?client=${config.client}`
: `${basePath}/${config.homepage}`;
: `/${pkg.name.toLocaleLowerCase()}/${basePath}/${config.homepage}`;
setDefaultMountApp(defaultURL);
}
};
......
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