feat 添加模块

This commit is contained in:
Ironsp
2026-09-09 10:30:08 +08:00
parent d67b18b60a
commit edb640a64b
3 changed files with 13 additions and 3 deletions

View File

@@ -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>

View File

@@ -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']>