mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-15 16:02:19 +08:00
code: update test token
This commit is contained in:
parent
5477a7dd26
commit
e5f4fa333b
@ -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}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user