|
@@ -20,7 +20,7 @@ module.exports = (vm) => {
|
|
|
// 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
|
|
|
config.header['access-token'] = vm.$store.state.vuex_token
|
|
|
}
|
|
|
- // config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
|
|
|
+ config.header['hand-device-no'] = vm.$store.state.vuex_deviceId
|
|
|
return config
|
|
|
}, config => { // 可使用async await 做异步操作
|
|
|
return Promise.reject(config)
|