mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 11:19:55 +00:00
chore: try getFavorites one by one
https://github.com/Physton/sd-webui-prompt-all-in-one/issues/328
This commit is contained in:
@@ -120,10 +120,10 @@ export default {
|
||||
}
|
||||
},
|
||||
emits: ['use'],
|
||||
mounted() {
|
||||
this.favorites.forEach(item => {
|
||||
this.getFavorites(item.key)
|
||||
})
|
||||
async mounted() {
|
||||
for (const item of this.favorites) {
|
||||
await this.getFavorites(item.key)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatTime(time) {
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
let favoriteItem = this.favorites.find(item => item.key === favoriteKey)
|
||||
if (!favoriteItem) return
|
||||
this.loading = true
|
||||
this.gradioAPI.getFavorites(favoriteKey).then(res => {
|
||||
return this.gradioAPI.getFavorites(favoriteKey).then(res => {
|
||||
if(res && res.length > 0){
|
||||
// 倒序
|
||||
res.reverse()
|
||||
|
||||
Reference in New Issue
Block a user