mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix(plugin-qiankun): 修复更新props时,model未响应式更新
This commit is contained in:
parent
2703bed715
commit
4a304163e3
@ -1,11 +1,10 @@
|
|||||||
|
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
|
|
||||||
let initState;
|
let initState = reactive({});
|
||||||
const setModelState = (val) => {
|
const setModelState = (props) => {
|
||||||
initState = val;
|
Object.assign(initState, props)
|
||||||
};
|
};
|
||||||
|
|
||||||
export default () => reactive(initState);
|
export default () => initState;
|
||||||
|
|
||||||
export { setModelState };
|
export { setModelState };
|
Loading…
x
Reference in New Issue
Block a user