✨ fix(g-sys-dict): 修复异步获取字典数据,导致偶发性渲染不出选项的问题
This commit is contained in:
parent
c0666f146f
commit
ff06be56b3
@ -193,6 +193,18 @@ watch(
|
||||
(newValue) => setDictValue(newValue),
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
watch(
|
||||
() => userStore.dictList,
|
||||
() => setDictValue(state.value),
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
watch(
|
||||
() => userStore.constList,
|
||||
() => setDictValue(state.value),
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user