feat 添加模块
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -1,5 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
onLaunch(() => {})
|
||||
import { initTables } from '@/service'
|
||||
|
||||
onLaunch(async () => {
|
||||
try {
|
||||
await initTables()
|
||||
console.log('数据库初始化完成')
|
||||
}
|
||||
catch (err) {
|
||||
console.error('数据库初始化失败:', err)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
1
src/auto-imports.d.ts
vendored
1
src/auto-imports.d.ts
vendored
@@ -385,7 +385,6 @@ declare module 'vue' {
|
||||
readonly getSystemInfo: UnwrapRef<typeof import('./utils/device')['getSystemInfo']>
|
||||
readonly h: UnwrapRef<typeof import('vue')['h']>
|
||||
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
|
||||
readonly initTables: UnwrapRef<typeof import('./utils/sqlite')['initTables']>
|
||||
readonly inject: UnwrapRef<typeof import('vue')['inject']>
|
||||
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
|
||||
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
|
||||
|
||||
Reference in New Issue
Block a user