pull/337/head
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 LanguageMixin from "@/mixins/languageMixin";
import IconSvg from "@/components/iconSvg.vue"; import IconSvg from "@/components/iconSvg.vue";
import waitTick from '@/utils/waitTick';
export default { export default {
components: {IconSvg}, 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) let historyItem = this.histories.find(item => item.key === historyKey)
if (!historyItem) return if (!historyItem) return
this.loading = true this.loading = true
this.gradioAPI.getHistories(historyKey).then(res => { return this.gradioAPI.getHistories(historyKey).then(res => {
if (res && res.length > 0) { if (res && res.length > 0) {
// //
res.reverse() res.reverse()
@ -282,4 +282,4 @@ export default {
}, },
} }
} }
</script> </script>

View File

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