diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 40f4458b..931774f3 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -17,7 +17,7 @@ @@ -33,13 +33,15 @@ import SvgIcon from '@/components/SvgIcon/index.vue'; import Dict from './components/Dict.vue' import DictItem from './components/DictItem.vue' -import {reactive} from 'vue' +import {reactive,toRefs} from 'vue' const state = reactive({ dictCode: '', dictName: '' // 字典名称,用于字典项组件回显 }) +const {dictCode,dictName} =toRefs(state) + const handleDictClick = (dictRow: any) => { if (dictRow) { state.dictName = dictRow.name