diff --git a/index.html b/index.html index 38e220aa2716ca0197dda3b347f807a935709fcd..d1c0ae6b8441c103fb74237dd006bd11b827b6ad 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ ShelfNote -
- +
+ - + \ No newline at end of file diff --git a/src/pages/HomePage.vue b/src/pages/HomePage.vue index 316584b2050dd751af4b1733ab7b957946916a7f..e8c3cf2e5c29121752a44e6270e76bb274f29712 100644 --- a/src/pages/HomePage.vue +++ b/src/pages/HomePage.vue @@ -14,25 +14,14 @@ const { height: entitiesHeight } = useElementSize(entitiesContainer); const dataStore = useDataStore(); const interfaceStore = useInterfaceStore(); - -// const entities = ref(JSON.parse(localStorage.getItem('homeEntities') || '[]')); const entities = computed(() => dataStore.homeEntities); +const backgroundUrl = computed(() => interfaceStore.homeBackgroundUrl); const addEntity = (newEntity: IEntity) => { - console.log('entities.value', entities.value); const prevState = [...entities.value]; prevState.push(newEntity); dataStore.editHomeEntities(prevState); - // let prevValue = JSON.parse(localStorage.getItem('homeEntities') || '[]'); - // prevValue.push(newEntity); - // localStorage.setItem('homeEntities', JSON.stringify(prevValue)); - // entities.value.push(newEntity); }; - -const backgroundUrl = computed(() => interfaceStore.homeBackgroundUrl); -watchEffect(() => { - console.log('entities: ', entities.value); -});