perf: default params
gitea/salix-front/pipeline/pr-test This commit looks good
Details
gitea/salix-front/pipeline/pr-test This commit looks good
Details
This commit is contained in:
parent
fa21e0e5d4
commit
61374493bd
|
@ -76,7 +76,7 @@ export function useArrayData(key, userOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetch(fetchOptions) {
|
async function fetch(fetchOptions) {
|
||||||
let { append = false, updateRouter = true } = fetchOptions;
|
let { append = false, updateRouter = true } = fetchOptions ?? {};
|
||||||
if (!store.url) return;
|
if (!store.url) return;
|
||||||
|
|
||||||
cancelRequest();
|
cancelRequest();
|
||||||
|
|
Loading…
Reference in New Issue