- 前端获取当前用户信息
import store from '@/store/'
const user = store.getters.userInfo; - 前端获取当前url,防止跨域问题
-
var urlLocal = window.location.protocol + '//' + window.location.host
window._CONFIG['domianURL'] = urlLocal + '/jeecg-boot'
微信扫一扫
import store from '@/store/'
const user = store.getters.userInfo;
var urlLocal = window.location.protocol + '//' + window.location.host
window._CONFIG['domianURL'] = urlLocal + '/jeecg-boot'
相关推荐