diff --git a/README.md b/README.md
index ea3b024..7fd942a 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
| 2 | GitHub 图床 | 配置 `Repo`、`Token` 参数 | [如何获取 GitHub token?](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) |
| 3 | 阿里云 OSS | 配置 `AccessKey ID`、`AccessKey Secret`、`Bucket`、`Region` 等参数 | [如何使用阿里云 OSS?](https://help.aliyun.com/document_detail/31883.html) |
| 4 | 腾讯云 COS | 配置 `SecretId`、`SecretKey`、`Bucket`、`Region` 等参数 | [如何使用腾讯云 COS?](https://cloud.tencent.com/document/product/436/38484) |
-| 5 | 七牛云 Kodo | 配置 `AccessKey`、`SecretKey`、`Bucket`、`Domain`、`Region` 等参数 | [如何使用七牛云 Kodo?](https://cloud.tencent.com/document/product/436/38484) |
+| 5 | 七牛云 Kodo | 配置 `AccessKey`、`SecretKey`、`Bucket`、`Domain`、`Region` 等参数 | [如何使用七牛云 Kodo?](https://developer.qiniu.com/kodo) |
![select-and-change-color-theme](./public/assets/images/select-and-change-color-theme.gif)
diff --git a/src/assets/scripts/tokenTools.js b/src/assets/scripts/tokenTools.js
index 7a30f33..16a71f3 100644
--- a/src/assets/scripts/tokenTools.js
+++ b/src/assets/scripts/tokenTools.js
@@ -59,9 +59,9 @@ export function utf8to16(str) {
return out;
}
-var base64EncodeChars =
+const base64EncodeChars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
-var base64DecodeChars = new Array(
+const base64DecodeChars = new Array(
-1,
-1,
-1,
diff --git a/src/components/CodemirrorEditor/uploadImgDialog.vue b/src/components/CodemirrorEditor/uploadImgDialog.vue
index 375f42c..0952d01 100644
--- a/src/components/CodemirrorEditor/uploadImgDialog.vue
+++ b/src/components/CodemirrorEditor/uploadImgDialog.vue
@@ -231,7 +231,7 @@
@@ -247,7 +247,7 @@
>
如何使用七牛云 Kodo?
@@ -496,6 +496,15 @@ export default {
this.formTxCOS.region;
errMessage = checkRes ? "" : "请先配置腾讯云 COS 参数";
break;
+ case "qiniu":
+ checkRes =
+ this.formQiniu.accessKey &&
+ this.formQiniu.secretKey &&
+ this.formQiniu.bucket &&
+ this.formQiniu.domain &&
+ this.formQiniu.region;
+ errMessage = checkRes ? "" : "请先配置七牛云 Kodo 参数";
+ break;
}
errMessage && this.$message.error(errMessage);
return checkRes;