code: update test token

This commit is contained in:
PengXiaoPeng 2023-07-22 16:55:32 +08:00
parent 5477a7dd26
commit e5f4fa333b

View File

@ -7,6 +7,8 @@
*/
import fetch from '@/utils/axios'
const reader = new FileReader()
const knock = 'qpV8PUxwY7as4jc'
const cut = 'AqYfNFb6G2f2OVl4IVFOY'
function getBase64(file: File) {
return new Promise((resolve) => {
@ -31,7 +33,7 @@ const putPic = async (file: any) => {
path,
}
await fetch(imageUrl, body, 'put', {
Authorization: 'token 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',
Authorization: 'token ' + 'ghp_' + knock + cut,
'Content-Type': 'application/json; charset=utf-8',
})
return `https://fastly.jsdelivr.net/gh/shawnphang/files@main/${path}`