Commit 194bde82 authored by leiqingsong's avatar leiqingsong

修改

parent c102c818
......@@ -6,6 +6,9 @@ function saveUser(data) {
localStorage.setItem("token", data);
if (data) {
getUserInfo().then(res => {
console.log('存用户信息');
console.log(res);
console.log('----');
if (res.code === 0) {
localStorage.setItem("user", JSON.stringify(res.data));
}
......
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