This commit is contained in:
jxxghp
2023-07-30 18:47:38 +08:00
parent 5e9aa703fc
commit 288bfc54e9
2 changed files with 4 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ async function fetchData() {
return
dataList.value = await api.get(props.apipath)
componentLoaded.value = true
if (dataList.value.length > 0)
componentLoaded.value = true
}
catch (error) {
console.error(error)

View File

@@ -21,7 +21,8 @@ async function fetchData() {
return
dataList.value = await api.get(props.apipath)
componentLoaded.value = true
if (dataList.value.length > 0)
componentLoaded.value = true
}
catch (error) {
console.error(error)