|
@@ -97,12 +97,13 @@ export async function bootstrap() {
|
|
|
console.log("vue app bootstraped");
|
|
|
}
|
|
|
export async function mount(props) {
|
|
|
+
|
|
|
props.onGlobalStateChange((state, prev) => {
|
|
|
// state: 变更后的状态; prev 变更前的状态
|
|
|
console.log(state, prev,'子组件监听');
|
|
|
});
|
|
|
props.setGlobalState({asd:21312312})
|
|
|
- console.log()
|
|
|
+ console.log(props)
|
|
|
render(props);
|
|
|
}
|
|
|
export async function unmount() {
|