|
@@ -19,36 +19,45 @@ Vue.config.productionTip = false
|
|
|
|
|
|
|
|
|
new Vue({
|
|
|
- router,
|
|
|
- store,
|
|
|
- render: h => h(App)
|
|
|
+ router,
|
|
|
+ store,
|
|
|
+ render: h => h(App)
|
|
|
}).$mount("#app");
|
|
|
|
|
|
+import { getAll } from '@/libs/micros'
|
|
|
+console.log(getAll())
|
|
|
+
|
|
|
registerMicroApps([
|
|
|
- {
|
|
|
- name: 'app-vue-hash',
|
|
|
- entry: 'http://localhost:8081',
|
|
|
- container: '#appContainer',
|
|
|
- activeRule: '/main/app-vue-hash',
|
|
|
- props: { data : { store, router } }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'fjhxCloudVue',
|
|
|
- entry: 'http://localhost:1888',
|
|
|
- container: '#appContainer',
|
|
|
- activeRule: '/main/fjhxCloudVue',
|
|
|
- props: { data : { store, router } }
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'canvas',
|
|
|
- entry: 'http://localhost:8080',
|
|
|
- container: '#appContainer',
|
|
|
- activeRule: '/main/canvas',
|
|
|
- props: { data : store }
|
|
|
- },
|
|
|
+ {
|
|
|
+ name: 'app-vue-hash',
|
|
|
+ entry: 'http://localhost:8081',
|
|
|
+ container: '#appContainer',
|
|
|
+ activeRule: '/main/app-vue-hash',
|
|
|
+ props: { data: { store, router } }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'fjhxCloudVue',
|
|
|
+ entry: 'http://localhost:1777',
|
|
|
+ container: '#appContainer',
|
|
|
+ activeRule: '/main/fjhxCloudVue',
|
|
|
+ props: { data: { store, router } }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'iotPlatformRoom',
|
|
|
+ entry: 'http://localhost:1888',
|
|
|
+ container: '#appContainer',
|
|
|
+ activeRule: '/main/iotPlatformRoom',
|
|
|
+ props: { data: { store, router } }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'canvas',
|
|
|
+ entry: 'http://localhost:8080',
|
|
|
+ container: '#appContainer',
|
|
|
+ activeRule: '/main/canvas',
|
|
|
+ props: { data: store }
|
|
|
+ },
|
|
|
]);
|
|
|
|
|
|
start();
|
|
|
|
|
|
-import {actions} from '@/libs/micros'
|
|
|
-actions.setGlobalState({asd:21312312})
|
|
|
+
|