在登录页面请求成功的地方使用uni.setStorageSync方法
uni.setStorageSync('userinfo', res.data.data);
怎么取 在要用的页面的onLoad周期里面
const res = uni.getStorageSync('userinfo');
怎么用 需要用到哪一个东西 就在header里面接收哪个参数
header: { token: this.userinfo.token },
在登录页面请求成功的地方使用uni.setStorageSync方法
uni.setStorageSync('userinfo', res.data.data);
怎么取 在要用的页面的onLoad周期里面
const res = uni.getStorageSync('userinfo');
怎么用 需要用到哪一个东西 就在header里面接收哪个参数
header: { token: this.userinfo.token },