Selaa lähdekoodia

Merge branch 'new-api' of http://192.168.0.115:3000/bill/mini-shop into new-api

gemercheung 3 vuotta sitten
vanhempi
commit
b16c06f657
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      pages/user/user.js

+ 2 - 0
pages/user/user.js

@@ -151,6 +151,8 @@ Page({
       data
     } = await util.request(api.UpdateUserInfo, body, 'POST', 'application/json')
     if (type == '1') {
+      console.log(data)
+      wx.setStorageSync('token', data.token);
       wx.navigateBack()
     } else {