fix(过滤器): 非管理员删除过滤器字段报错无权限

This commit is contained in:
fit2cloud-chenyw 2022-09-28 22:42:24 +08:00
parent e19e3ccc2f
commit 27b2af4813

View File

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