Skip to content

Commit

Permalink
upgrade#0.2.6 fix:随机题头图
Browse files Browse the repository at this point in the history
  • Loading branch information
hqweay committed May 1, 2024
1 parent 8e0e819 commit 831ba58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siyuan-hqweay-go",
"version": "0.2.5",
"version": "0.2.6",
"type": "module",
"description": "恐龙工具箱",
"repository": "",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-hqweay-go",
"author": "养恐龙",
"url": "https://github.com/hqweay/siyuan-hqweay-go",
"version": "0.2.5",
"version": "0.2.6",
"minAppVersion": "3.0.0",
"backends": [
"windows",
Expand Down
4 changes: 2 additions & 2 deletions src/setting.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
type: "checkbox",
title: "随机头图",
title: "随机题头图",
description: "支持配置本地文件夹/自定义 URL",
key: "randomHeaderImage",
value: settings.getFlag("randomHeaderImage"),
Expand Down Expand Up @@ -124,7 +124,7 @@
"以 名称====链接 配置;换行分隔。${content} 将会替换为选中的内容",
},
],
随机头图: [
随机题头图: [
{
type: "checkbox",
title: "本地图片进入缓存?",
Expand Down
2 changes: 1 addition & 1 deletion src/siyuan-random/randomImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class RandomImage {
}
const folderIndex =
imageFolders.length === 1
? 1
? 0
: Math.floor(Math.random() * imageFolders.length);
const folderPath = imageFolders[folderIndex].trim();

Expand Down

0 comments on commit 831ba58

Please sign in to comment.