Commit 6ad0fad8 authored by Facius's avatar Facius

返回值因为不确定一定是对象,所以要判断

parent 11e60876
...@@ -88,7 +88,7 @@ const install = (Vue, vm) => { ...@@ -88,7 +88,7 @@ const install = (Vue, vm) => {
// return result; // return result;
case 200: case 200:
return { return {
data:typeof(result.data) == 'boolean' ? result.data : result.data || result, data:result.data == null ? result : result.data, // result.data的值为0, false, ''的时候也要算有值
code:code, code:code,
message:msg message:msg
}; };
......
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