Skip to content

Commit e5b63d9

Browse files
committed
(permission): Settings - Permission Configuration Error Style Fix When no data source is selected, the data table style is disabled
1 parent dead2f1 commit e5b63d9

File tree

1 file changed

+5
-1
lines changed
  • frontend/src/views/system/permission

1 file changed

+5
-1
lines changed

frontend/src/views/system/permission/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,14 @@ const handleColumnPermission = (row: any) => {
216216
const icon = (item: any) => {
217217
return (dsTypeWithImg.find((ele) => item.type === ele.type) || {}).img
218218
}
219-
219+
let time: any
220220
const handleInitDsIdChange = (val: any) => {
221221
columnForm.ds_id = val.id
222222
columnForm.ds_name = val.name
223+
time = setTimeout(() => {
224+
clearTimeout(time)
225+
columnFormRef.value.clearValidate('table_id')
226+
}, 0)
223227
datasourceApi.tableList(val.id).then((res: any) => {
224228
tableListOptions.value = res || []
225229
activeTable.value = null

0 commit comments

Comments
 (0)