fix(plugin-qiankun): 修复更新props时,model未响应式更新

This commit is contained in:
harrywan 2021-07-12 18:05:34 +08:00
parent 2703bed715
commit 4a304163e3

View File

@ -1,11 +1,10 @@
import { reactive } from 'vue';
let initState;
const setModelState = (val) => {
initState = val;
let initState = reactive({});
const setModelState = (props) => {
Object.assign(initState, props)
};
export default () => reactive(initState);
export default () => initState;
export { setModelState };
export { setModelState };