Commit 22251945 by liang ce

router 判断

parent 999da0f8
...@@ -81,7 +81,7 @@ const $http = { ...@@ -81,7 +81,7 @@ const $http = {
'Content-Type': 'application/json; charset=UTF-8' 'Content-Type': 'application/json; charset=UTF-8'
} }
}).then((res) => { }).then((res) => {
console.log(res) console.log(res.data, res.data.code, res.data.resultCode)
if (res.data.code === 0 || res.data.resultCode === 0) { if (res.data.code === 0 || res.data.resultCode === 0) {
store.dispatch('setSpinning', false) store.dispatch('setSpinning', false)
return Promise.resolve(res) return Promise.resolve(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment