vue
从后台获取token:localStorage.setItem('token', res.data.msg)
var token = localStorage.getItem('token')
通过axios给后台传token:headers: { Authorization: token }
uniapp
从后台获取token:uni.setStorageSync('token', res.data.msg);
let token = uni.getStorageSync('token');
通过axios给后台传token:header: {"Authorization": token}