1.man.js中设置了resource请求的根路径
import VueResource from 'vue-resource'
Vue.use(VueResource);
Vue.http.options.root = store.state.httpLocation;
Vue.http.options.emulateJSON = true;
2.需求是,我在登录时需要设置请求的域名的端口号
怎样才能动态修改?
我在登录组件用使用
this.$http.options.root = newValue;
并不能修改,也不报错。
请问怎么解决啊?