Commit bdacbf6f by 冒粤蓉

fix config

1 parent 032c3dfe
......@@ -28,13 +28,14 @@ function render({ data = {} , container } = {}) {
base: window.__POWERED_BY_QIANKUN__ ? '/system' : '/',
routes,
});
store.state.baseURL = data.baseURL;
instance = new Vue({
router,
store,
data(){
return {
parentRouter: data.router,
parentVuex: data.store,
parentVuex: data.store
}
},
render: h => h(App),
......
......@@ -94,6 +94,7 @@ const getBaseUrl = () => {
return new Promise((resolve, reject) => {
let BASE_URL = store.state.baseURL;
if(!BASE_URL && baseFlag) {
baseFlag = false;
instance({
url: MOCK_CONFIG_URL,
method: 'get'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!