UNPKG

@neosjs/create-app

Version:

帮助开发者快速创建Vue3应用并自动配置项目

24 lines (22 loc) 475 B
import { defineStore } from 'pinia' import { store } from '@/modules/store' interface IAppInfo { lastBuildTime: string } export const useSystemStore = defineStore('systemStore', { state: () => ({ appInfo: {} as IAppInfo }), getters: { getAppInfo: state => state.appInfo }, actions: { clearStore() { this.$reset() } }, persist: { storage: window.sessionStorage } }) export const useSystemStoreWithOut = () => useSystemStore(store)