init
This commit is contained in:
10
src/stores/index.ts
Normal file
10
src/stores/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// https://pinia.vuejs.org/
|
||||
import { createPinia } from 'pinia';
|
||||
import piniaPluginPersist from 'pinia-plugin-persist';
|
||||
|
||||
// 创建
|
||||
const pinia = createPinia();
|
||||
pinia.use(piniaPluginPersist);
|
||||
|
||||
// 导出
|
||||
export default pinia;
|
||||
Reference in New Issue
Block a user