[fix] function call

This commit is contained in:
Purp1e
2025-03-13 00:25:09 +08:00
parent c4100120a4
commit d7234ddae9
10 changed files with 758 additions and 376 deletions

View File

@@ -1,3 +1,16 @@
import { setValtioPath } from 'tauri-plugin-valtio';
import {appConfigDir} from '@tauri-apps/api/path'
import path from 'path';
async function init() {
const configDir = await appConfigDir()
const distDir = path.join(configDir, 'cstb')
await setValtioPath(distDir);
// console.log('init valtio', distDir);
}
init();
export const DEFAULT_STORE_CONFIG = {
saveOnChange: true,
saveOnExit: true,