1
1
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:
NoriDev 2022-09-16 16:38:03 +09:00
parent ab28bbd558
commit dd33c8a6a8

View File

@ -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,