fix(frontend): In MkPagination, init() also initializes items
ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
This commit is contained in:
parent
9e955d20c4
commit
06bf5c1ff1
1 changed files with 1 additions and 2 deletions
|
@ -188,6 +188,7 @@ watch(queue, (a, b) => {
|
||||||
}, { deep: true });
|
}, { deep: true });
|
||||||
|
|
||||||
async function init(): Promise<void> {
|
async function init(): Promise<void> {
|
||||||
|
items.value = new Map();
|
||||||
queue.value = new Map();
|
queue.value = new Map();
|
||||||
fetching.value = true;
|
fetching.value = true;
|
||||||
const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params.value : props.pagination.params : {};
|
const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params.value : props.pagination.params : {};
|
||||||
|
@ -219,8 +220,6 @@ async function init(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
const reload = (): Promise<void> => {
|
const reload = (): Promise<void> => {
|
||||||
items.value = new Map();
|
|
||||||
queue.value = new Map();
|
|
||||||
return init();
|
return init();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue