forked from github/dataease
Merge pull request #6092 from dataease/pr@dev@fix_template_filter
fix(过滤器): 模版试图更换数据集之后过滤器未能显示数据集列表#5634
This commit is contained in:
commit
66d5b201fb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user