mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 14:28:53 +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;
|
||||
items.value = [...items.value, item];
|
||||
defaultStore.set('menu', items.value.map(it => it.startsWith('-:') ? '-' : it));
|
||||
}
|
||||
|
||||
async function del(item) {
|
||||
@ -97,6 +98,7 @@ function reset() {
|
||||
}
|
||||
|
||||
watch(items, async () => {
|
||||
// await save();
|
||||
isChanged = true;
|
||||
}, {
|
||||
deep: true,
|
||||
|
Loading…
Reference in New Issue
Block a user