[fix] tauri store async fn

This commit is contained in:
Purp1e
2024-11-11 11:19:29 +08:00
parent 918c6bf83a
commit fcead5a4f5
5 changed files with 11 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ interface AppAction {
}
const STORE_NAME = "app"
const { /* store, */ storage } = tauriStore(STORE_NAME)
const { /* store, */ storage } = await tauriStore(STORE_NAME)
const useAppStore = create<AppState & AppAction>()(
persist(