From 9c59d57d7a679d056e70298d7493dbffd941eb49 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Jul 2021 13:07:08 +0900 Subject: [PATCH] fix bug --- src/client/store.ts | 2 +- src/client/ui/default.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/store.ts b/src/client/store.ts index 2ae9cd790..6ca431e05 100644 --- a/src/client/store.ts +++ b/src/client/store.ts @@ -90,7 +90,7 @@ export const defaultStore = markRaw(new Storage('base', { default: [] as { name: string; id: string; - place: string; + place: string | null; data: Record; }[] }, diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue index afaa96cec..5e79cd383 100644 --- a/src/client/ui/default.vue +++ b/src/client/ui/default.vue @@ -115,13 +115,13 @@ export default defineComponent({ if (this.$store.state.widgets.length === 0) { this.$store.set('widgets', [{ name: 'calendar', - id: 'a', place: 'right', data: {} + id: 'a', place: null, data: {} }, { name: 'notifications', - id: 'b', place: 'right', data: {} + id: 'b', place: null, data: {} }, { name: 'trends', - id: 'c', place: 'right', data: {} + id: 'c', place: null, data: {} }]); } },