#
luxiaotao1123
2024-08-20 01883c7d5eca26efb7f844773cae50e5154b9f8b
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: false,
        autoCruise: false,
        lookAt: { x: 0, y: 0, z: 0 },
        cruiseAgvNo: '2',
    }
);
 
export const useStore = () => useProxy(store);