mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-29 15:28:13 +09:00
fix(frontend): In MkPagination, init() also initializes items
ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
This commit is contained in:
parent
9e955d20c4
commit
06bf5c1ff1
@ -188,6 +188,7 @@ watch(queue, (a, b) => {
|
||||
}, { deep: true });
|
||||
|
||||
async function init(): Promise<void> {
|
||||
items.value = new Map();
|
||||
queue.value = new Map();
|
||||
fetching.value = true;
|
||||
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> => {
|
||||
items.value = new Map();
|
||||
queue.value = new Map();
|
||||
return init();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user