fix(过滤器): 模版试图更换数据集之后过滤器未能显示数据集列表#5634

This commit is contained in:
fit2cloud-chenyw 2023-09-08 17:09:09 +08:00
parent 9dde032dc4
commit 5c5bc938dc

View File

@ -798,7 +798,7 @@ export default {
async loadField(tableId, init) {
const res = await fieldListWithPermission(tableId)
let data = res.data || []
if (init && !this.checkSuperior(data, this.anotherTableInfo(tableId))) {
if (init && (!data.length || !this.checkSuperior(data, this.anotherTableInfo(tableId)))) {
this.backToLink()
}
if (this.widget && this.widget.filterFieldMethod) {