Merge pull request #3247 from dataease/pr@dev@fix_filter_auth

fix(过滤器): 非管理员删除过滤器字段报错无权限
This commit is contained in:
xuwei-fit2cloud 2022-09-29 09:35:51 +08:00 committed by GitHub
commit ff3d1bf8b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,9 +87,13 @@ export default {
},
methods: {
loadFields() {
fieldListWithPermission(this.firstTableId).then(res => {
this.tableFields = JSON.parse(JSON.stringify(res.data))
})
if (this.firstTableId) {
fieldListWithPermission(this.firstTableId).then(res => {
this.tableFields = JSON.parse(JSON.stringify(res.data))
})
} else {
this.tableFields = []
}
},
onMove(e, originalEvent) {
return true