Skip to content

Commit a8d41e2

Browse files
修改多个字典管理标签切换 (#1042)
1 parent 3a591a5 commit a8d41e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,17 @@ import {
127127
findSysDictionaryDetail,
128128
getSysDictionaryDetailList
129129
} from '@/api/sysDictionaryDetail' // 此处请自行替换地址
130-
import { ref } from 'vue'
130+
import { ref, watch } from 'vue'
131131
import { useRoute } from 'vue-router'
132132
import { ElMessage } from 'element-plus'
133133
import { formatBoolean, formatDate } from '@/utils/format'
134134
const route = useRoute()
135135
136+
watch(() => route.params.id, (id) => {
137+
searchInfo.value.sysDictionaryID = Number(id)
138+
getTableData()
139+
})
140+
136141
const formData = ref({
137142
label: null,
138143
value: null,

0 commit comments

Comments
 (0)