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)