|
@@ -98,6 +98,9 @@ import store from '../store'
|
|
|
console.log(process.env.NODE_ENV)
|
|
|
const state = getAll()
|
|
|
state.router = router
|
|
|
+const isTest = window.location.host == '36.134.91.96:10003'
|
|
|
+const isServe = process.env.NODE_ENV === "development"
|
|
|
+console.log(isTest,isServe)
|
|
|
registerMicroApps([
|
|
|
{
|
|
|
name: 'app-vue-hash',
|
|
@@ -105,12 +108,12 @@ registerMicroApps([
|
|
|
container: '#appContainer',
|
|
|
activeRule: '/main/app-vue-hash',
|
|
|
props:{
|
|
|
- data:state,
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
name: 'fjhxCloudVue',
|
|
|
- entry: (process.env.NODE_ENV === "development") ? 'http://localhost:1777' : 'https://wdly.bytesail.cn:10002',
|
|
|
+ entry: isServe ? 'http://192.168.1.198:1777' : 'http://36.134.91.96:10002',
|
|
|
//entry: (process.env.NODE_ENV === "development") ? 'https://wdly.bytesail.cn:10002' : 'https://wdly.bytesail.cn:10002',
|
|
|
container: '#appContainer',
|
|
|
activeRule: '/main/fjhxCloudVue',
|