#
luxiaotao1123
2024-08-20 9d71e24e7982f6915e5f832512925bee9b245f35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { proxy } from 'valtio'
import { useProxy } from 'valtio/utils'
 
const store = proxy(
    {
        text: 'Hello World',
        shelfList: {},
        autoRotate: true,
        autoCruise: false,
        lookAt: { x: 0, y: 0, z: 0 },
        cruiseAgvNo: '2',
    }
);
 
export const useStore = () => useProxy(store);