/* * @Author: shuishen 1109946754@qq.com * @Date: 2024-11-06 10:46:45 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-11-07 18:58:32 * @FilePath: \bigScreen\src\store\router.js * @Description: * * Copyright (c) 2024 by shuishen, All Rights Reserved. */ // src/stores/useUserStore.js import { defineStore } from 'pinia' export const usePointStore = defineStore('usePointStore', { state: () => ({ sharedData: '1' }), actions: { updateSharedData(newData) { this.sharedData = newData; } } // persist: { // enabled: true, // strategies: [ // { // key: 'usepoint', // paths: ['usepoint'], // storage: localStorage, // } // ] // } })