Skip to content

Commit

Permalink
fix: solve error with no active component when onServer Prefetch is c…
Browse files Browse the repository at this point in the history
…alled

Detailed in

#6
  • Loading branch information
kawa-work committed Apr 7, 2022
1 parent c784df2 commit 9bbd8bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions client/app.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<script setup lang="ts">
const { baseInfo, fetchBaseInfo } = useBaseInfo()
if (baseInfo.value === null) {
await fetchBaseInfo()
}
</script>

<template>
<v-app>
<TheSidebar></TheSidebar>
Expand Down
6 changes: 0 additions & 6 deletions client/plugins/microcms.ts

This file was deleted.

0 comments on commit 9bbd8bb

Please sign in to comment.