Commit 22251945 by liang ce

router 判断

parent 999da0f8
......@@ -81,7 +81,7 @@ const $http = {
'Content-Type': 'application/json; charset=UTF-8'
}
}).then((res) => {
console.log(res)
console.log(res.data, res.data.code, res.data.resultCode)
if (res.data.code === 0 || res.data.resultCode === 0) {
store.dispatch('setSpinning', false)
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