Fix when error wish tally
parent
773cd84167
commit
6c20f3d026
|
@ -100,6 +100,7 @@
|
|||
}
|
||||
|
||||
async function getData() {
|
||||
error = undefined;
|
||||
loading = true;
|
||||
|
||||
const url = new URL(`${__paimon.env.API_HOST}/wish`);
|
||||
|
@ -112,6 +113,10 @@
|
|||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
|
||||
if (res.status === 400) {
|
||||
error = 'Not available yet';
|
||||
}
|
||||
|
||||
const data = await res.json();
|
||||
|
||||
const values = [0, 0];
|
||||
|
|
Loading…
Reference in New Issue