Merge pull request #6092 from dataease/pr@dev@fix_template_filter

fix(过滤器): 模版试图更换数据集之后过滤器未能显示数据集列表#5634
This commit is contained in:
fit2cloud-chenyw
2023-09-08 17:09:53 +08:00
committed by GitHub

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) {