This commit is contained in:
bluelovers
2024-06-09 08:06:20 +08:00
parent f304c5eb84
commit bad38d5050
3 changed files with 6 additions and 5 deletions

View File

@@ -78,6 +78,7 @@ import common from "@/utils/common";
import LanguageMixin from "@/mixins/languageMixin";
import IconSvg from "@/components/iconSvg.vue";
import waitTick from '@/utils/waitTick';
export default {
components: {IconSvg},
@@ -301,4 +302,4 @@ export default {
},
}
}
</script>
</script>

View File

@@ -130,7 +130,7 @@ export default {
let historyItem = this.histories.find(item => item.key === historyKey)
if (!historyItem) return
this.loading = true
this.gradioAPI.getHistories(historyKey).then(res => {
return this.gradioAPI.getHistories(historyKey).then(res => {
if (res && res.length > 0) {
// 倒序
res.reverse()
@@ -282,4 +282,4 @@ export default {
},
}
}
</script>
</script>

View File

@@ -267,7 +267,7 @@ Github: {{name}}`
if (this.tagCompleteFilesLoading) return
this.tagCompleteFilesLoading = true
this.tagCompleteFiles = []
this.gradioAPI.getCSVs().then(res => {
return this.gradioAPI.getCSVs().then(res => {
this.tagCompleteFilesLoading = false
if (!res || res.length <= 0) return
this.tagCompleteFiles.push({
@@ -375,4 +375,4 @@ Github: {{name}}`
},
},
}
</script>
</script>