获取vuex内容
vue文件:
import { useStore } from 'vuex';
const store = useStore();
console.log(store.getters.userinfo.companyId,'store.getters.userinfo.companyId;')
js文件--是自己写的文件目录:
import store from '@/store';
let w = store.getters.userinfo.companyId;
console.log(w,'wwwww')