发布后publish文件写gitee空内容报错bugfix

This commit is contained in:
xiaoqi.cxq 2022-07-04 20:13:41 +08:00
parent 8a045e3ca9
commit cc6c8ff5ab
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
{
"name": "StackEdit中文版",
"description": "支持Gitee仓库/粘贴图片自动上传的浏览器内 Markdown 编辑器",
"version": "1.0.13",
"version": "1.0.0",
"manifest_version": 2,
"container" : "GOOGLE_DRIVE",
"container" : "GITEE",
"api_console_project_id" : "241271498917",
"icons": {
"16": "icon-16.png",

View File

@ -1,8 +1,8 @@
{
"name": "stackedit",
"version": "5.15.7",
"description": "Free, open-source, full-featured Markdown editor",
"author": "Benoit Schweblin",
"description": "免费, 开源, 功能齐全的 Markdown 编辑器",
"author": "Benoit Schweblin, 豆萁",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mafgwo/stackedit/issues"

View File

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