代码问题
This commit is contained in:
@@ -18,9 +18,11 @@ export const useVoiceCopyStore = defineStore('voiceCopy', {
|
||||
/**
|
||||
* 加载配音列表
|
||||
*/
|
||||
async load() {
|
||||
if (this.loaded && !this.loading) return
|
||||
|
||||
async load(forceRefresh = false) {
|
||||
if(!forceRefresh){
|
||||
if (this.loaded && !this.loading) return
|
||||
}
|
||||
|
||||
this.loading = true
|
||||
try {
|
||||
const res = await VoiceService.getPage({
|
||||
@@ -166,7 +168,7 @@ export const useVoiceCopyStore = defineStore('voiceCopy', {
|
||||
*/
|
||||
async refresh() {
|
||||
this.loaded = false
|
||||
await this.load()
|
||||
await this.load(true)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user