这种写法极大的方便了取值
import store from '@/page'
const { x1, x2} = store;
也可以取函数的返回值
import functionX from '@/page'
const { x1, x2} = functionX;
上面的写法就相当于
import store from '@/page'
const x1 = store.x1
const x2 = store.x2
或者
import functionX from '@/page'
const x1 = functionX.x1
const x2 = functionX.x2