避免不必要的资源访问

This commit is contained in:
haiyangcui
2020-11-21 18:35:56 +01:00
parent 2dd91f78c9
commit da22abd25d

View File

@@ -494,7 +494,7 @@ export default {
const type = this.type.tid
const page = this.pagecount
this.statusText = ' '
if (key && page < 1) { // OK资源前几类硬是去不掉
if (key === undefined || page < 1 || type === undefined) { // OK资源前几类硬是去不掉
$state.complete()
this.statusText = '暂无数据'
return false