diff --git a/web/src/view/superAdmin/dictionary/sysDictionary.vue b/web/src/view/superAdmin/dictionary/sysDictionary.vue index bb4fadae1f..d73c6a323f 100644 --- a/web/src/view/superAdmin/dictionary/sysDictionary.vue +++ b/web/src/view/superAdmin/dictionary/sysDictionary.vue @@ -88,7 +88,7 @@ defineOptions({ name: 'SysDictionary', }) -const selectID = ref(1) +const selectID = ref(0) const formData = ref({ name: null, @@ -127,6 +127,7 @@ const getTableData = async () => { const res = await getSysDictionaryList() if (res.code === 0) { dictionaryData.value = res.data + selectID.value = res.data[0].ID } } diff --git a/web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue b/web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue index d06a95042c..712a974448 100644 --- a/web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue +++ b/web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue @@ -261,6 +261,7 @@ const handleCurrentChange = (val) => { // 查询 const getTableData = async() => { + if(!props.sysDictionaryID) return const table = await getSysDictionaryDetailList({ page: page.value, pageSize: pageSize.value,