Commit 6884a4d4 authored by geruidan's avatar geruidan

Update user.js 加了fail

parent f46131b2
......@@ -51,6 +51,13 @@ const actions = {
let token = encodeURI(JSON.stringify(res.data))
uni.setStorageSync("token", token)
resolve(1);
}else{
uni.showToast({
title: `${res.code} ${res.msg}`,
duration: 2000,
icon:'none'
});
resolve(0)
}
})
})
......
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