浏览代码

Signed-off-by: liuboyan <632697560@qq.com>
bug

liuboyan 4 年之前
父节点
当前提交
f2a3f1c732
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/request.js

+ 1 - 1
utils/request.js

@@ -4,7 +4,7 @@ const request = (url, data, method = 'GET') => {
 			'Content-Type': 'application/json',
 		}
 		if (uni.getStorageSync('token')) {
-			header['token'] = 'Bearer ' + uni.getStorageSync('token')
+			header.token = 'Bearer ' + uni.getStorageSync('token')
 		}
 		uni.request({
 			url: url,