File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
web/src/view/superAdmin/dictionary Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ defineOptions({
88
88
name: ' SysDictionary' ,
89
89
})
90
90
91
- const selectID = ref (1 )
91
+ const selectID = ref (0 )
92
92
93
93
const formData = ref ({
94
94
name: null ,
@@ -127,6 +127,7 @@ const getTableData = async () => {
127
127
const res = await getSysDictionaryList ()
128
128
if (res .code === 0 ) {
129
129
dictionaryData .value = res .data
130
+ selectID .value = res .data [0 ].ID
130
131
}
131
132
}
132
133
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ const handleCurrentChange = (val) => {
261
261
262
262
// 查询
263
263
const getTableData = async () => {
264
+ if (! props .sysDictionaryID ) return
264
265
const table = await getSysDictionaryDetailList ({
265
266
page: page .value ,
266
267
pageSize: pageSize .value ,
You can’t perform that action at this time.
0 commit comments