Pre Merge pull request !5 from 方而静/N/A

This commit is contained in:
方而静 2022-07-04 08:06:57 +00:00 committed by Gitee
commit 30eedf546d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -264,7 +264,7 @@ export default {
url: `contents/${encodeURIComponent(path)}`, url: `contents/${encodeURIComponent(path)}`,
body: { body: {
message: getCommitMessage(sha ? 'updateFileMessage' : 'createFileMessage', path), message: getCommitMessage(sha ? 'updateFileMessage' : 'createFileMessage', path),
content: utils.encodeBase64(content), content: utils.encodeBase64(content == "" ? "\u0000" : content),
sha, sha,
branch, branch,
}, },