Commit afd3e274 authored by nanahira's avatar nanahira

fix

parent 32b0b046
......@@ -68,9 +68,10 @@ export default class PicsourceHeisi
}
async getRandomUrl() {
const list = await this.cache.get('heisiList', 'list');
let list = await this.cache.get('heisiList', 'list');
if (!list || !list.length) {
await this.fetchPicList();
list = await this.cache.get('heisiList', 'list');
}
if (!list || !list.length) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment