update token

This commit is contained in:
2020-06-22 17:45:17 +08:00
parent 7e71f97e01
commit 28911b6e7c
7 changed files with 195 additions and 146 deletions

View File

@@ -25,7 +25,7 @@ const install = (Vue, vm) => {
const token = uni.getStorageSync('token');
// console.log(token);
// config.header.token = token;
config.header.Authorization = token;
config.header.Authorization = 'Bearer' + " " + token;
// config.header.Token = 'xxxxxx';
// 可以对某个url进行特别处理此url参数为this.$u.get(url)中的url值