[fix] function call
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user