|
@@ -10,10 +10,10 @@ import {ConfirmPlugin} from 'vux'
|
|
|
import VueVideoPlayer from 'vue-video-player'
|
|
|
import {ToastPlugin} from 'vux'
|
|
|
import routes from './router/routes'
|
|
|
-import WechatShare from './wechat/WechatShare'
|
|
|
import {base64} from 'vux'
|
|
|
import CommonUtil from './components/util/commonUtil.js'
|
|
|
import Actions from './lib/Actions'
|
|
|
+import Api from './lib/api'
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
Vue.use(VueResource);
|
|
@@ -22,7 +22,6 @@ Vue.use(VueVideoPlayer);
|
|
|
Vue.use(ToastPlugin);
|
|
|
Vue.use(ConfirmPlugin);
|
|
|
|
|
|
-
|
|
|
const store = new Vuex.Store({
|
|
|
state: {
|
|
|
isLoading: false,
|
|
@@ -41,7 +40,7 @@ const store = new Vuex.Store({
|
|
|
name:'',
|
|
|
mobile:'',
|
|
|
address:''
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mutations: {
|
|
|
updateLoadingStatus (state, payload) {
|
|
@@ -70,6 +69,9 @@ const store = new Vuex.Store({
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+Api.init_url(window.location.href);
|
|
|
+
|
|
|
//超时处理
|
|
|
Vue.http.interceptors.push((request, next) => {
|
|
|
let timeout;
|