瀏覽代碼

fix: remove token prefix Bearer

hi-cactus! 3 年之前
父節點
當前提交
0a7f01d04f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/components/Upload.tsx

+ 1 - 1
app/components/Upload.tsx

@@ -40,7 +40,7 @@ const Upload: RefForwardingComponent<
   const { name, action, onChange } = props
   const [loading, setLoading] = useState(false)
   const headers = {
-    authorization: `Bearer ${localStorage.getItem('TOKEN')}`
+    authorization: `${localStorage.getItem('TOKEN')}`
   }
   const change = useCallback((info: UploadChangeParam) => {
     const { status, response } = info.file