File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ async function ghFileUpload(content, filename) {
8585 const githubResourceUrl = `raw.githubusercontent.com/${ username } /${ repo } /${ branch } /` ;
8686 const cdnResourceUrl = `cdn.jsdelivr.net/gh/${ username } /${ repo } @${ branch } /` ;
8787 return useDefault
88- ? res . content . download_url . replace ( githubResourceUrl , cdnResourceUrl )
89- : res . content . download_url ;
88+ ? res . data . content . download_url . replace ( githubResourceUrl , cdnResourceUrl )
89+ : res . data . content . download_url ;
9090}
9191
9292//-----------------------------------------------------------------------
@@ -112,7 +112,7 @@ async function giteeUpload(content, filename) {
112112 message : `Upload by ${ window . location . href } ` ,
113113 } ,
114114 } ) ;
115- return encodeURI ( res . content . download_url ) ;
115+ return encodeURI ( res . data . content . download_url ) ;
116116}
117117
118118//-----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments