Skip to content

Commit

Permalink
fixed: 字典页面默认值调整为拉回字典列表的第一个
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Sep 17, 2024
1 parent a8e6dc3 commit a6651ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/view/superAdmin/dictionary/sysDictionary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ defineOptions({
name: 'SysDictionary',
})
const selectID = ref(1)
const selectID = ref(0)
const formData = ref({
name: null,
Expand Down Expand Up @@ -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
}
}
Expand Down
1 change: 1 addition & 0 deletions web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const handleCurrentChange = (val) => {
// 查询
const getTableData = async() => {
if(!props.sysDictionaryID) return
const table = await getSysDictionaryDetailList({
page: page.value,
pageSize: pageSize.value,
Expand Down

0 comments on commit a6651ff

Please sign in to comment.