Skip to content

Commit

Permalink
fix: 修复图床插件开启的时候CSDN平台的图片问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Sep 4, 2023
1 parent 164b518 commit 3eb68c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/插件开发.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@
YAML适配器(不一定有)
6. 开启配置页面
在 src/components/set/publish/singleplatform/SingleSettingIndex.vue 注册配置
7. 修改图片上传逻辑,可选
src/utils/constants.ts

5 changes: 2 additions & 3 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/

export const isDev = process.env.DEV_MODE === "true"
// export const isDev = false
export const isDebugMode = process.env.DEBUG_MODE === "true"

/**
Expand All @@ -35,9 +34,9 @@ export const DYNAMIC_CONFIG_KEY = "dynamic-config"
/**
* 必须使用平台自带的图片上传的平台
*/
export const MUST_USE_OWN_PLATFORM = ["custom_Zhihu"]
export const MUST_USE_OWN_PLATFORM = ["custom_Zhihu", "custom_Csdn"]

/**
* 必须使用图床的平台
*/
export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Notion", "common_Hexo"]
export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Notion", "common_Hexo", "gitlab_Gitlabhexo"]

0 comments on commit 3eb68c0

Please sign in to comment.