mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 22:38:34 +09:00
fix: Fixed an issue where the same item could be added to the navigation bar multiple times
This commit is contained in:
parent
ab28bbd558
commit
dd33c8a6a8
@ -78,6 +78,7 @@ async function addItem() {
|
|||||||
});
|
});
|
||||||
if (canceled) return;
|
if (canceled) return;
|
||||||
items.value = [...items.value, item];
|
items.value = [...items.value, item];
|
||||||
|
defaultStore.set('menu', items.value.map(it => it.startsWith('-:') ? '-' : it));
|
||||||
}
|
}
|
||||||
|
|
||||||
async function del(item) {
|
async function del(item) {
|
||||||
@ -97,6 +98,7 @@ function reset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(items, async () => {
|
watch(items, async () => {
|
||||||
|
// await save();
|
||||||
isChanged = true;
|
isChanged = true;
|
||||||
}, {
|
}, {
|
||||||
deep: true,
|
deep: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user