Skip to content

Commit

Permalink
fix: 理顺dexie加载顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
simply-none committed Jan 16, 2024
1 parent 20521a3 commit 37dd883
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 429 deletions.
17 changes: 1 addition & 16 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
<script setup>
import { RouterView } from "vue-router";
import { ref, reactive, onMounted, onBeforeMount } from "vue";
import useDBStore from './stores/db'
let useDB = useDBStore()
let { createDB } = useDB
onBeforeMount(async () => {
createDB("test", [{
name: "basic-info",
schema: "++id, currentBook",
}]);
});
</script>
<script setup></script>

<template>
<RouterView />
Expand Down
Loading

0 comments on commit 37dd883

Please sign in to comment.