Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-01-07 22:15:27 +08:00
commit 3f1b49c46a
4 changed files with 112 additions and 16 deletions

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20230106104821-9nfphwm",
"title": "Workspace",
"updated": "20230106105328"
"updated": "20230107212528"
},
"Children": [
{
@ -123,7 +123,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -132,7 +132,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -141,7 +141,39 @@
},
{
"Type": "NodeText",
"Data": ". The desktop side supports opening multiple workspaces at the same time, but the mobile side can only switch different workspaces."
"Data": ". The desktop side supports opening multiple workspaces at the same time, but the mobile side can only switch different workspaces."
}
]
},
{
"ID": "20230107212451-h2phr5b",
"Type": "NodeParagraph",
"Properties": {
"id": "20230107212451-h2phr5b",
"updated": "20230107212528"
},
"Children": [
{
"Type": "NodeText",
"Data": "If your multiple workspaces need to be started frequently, you can consider creating a different startup entry for each workspace and specify the startup parameter "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace absolute path of the workspace"
},
{
"Type": "NodeText",
"Data": ". For example, multiple shortcuts can be copied on a Windows system, and each Shortcut - Property - Target is followed by a workspace path parameter, such as "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "."
}
]
},

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20230106101434-e6g4av3",
"title": "工作空间",
"updated": "20230106104112"
"updated": "20230107212338"
},
"Children": [
{
@ -122,7 +122,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -131,7 +131,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -140,7 +140,39 @@
},
{
"Type": "NodeText",
"Data": " 中切换工作空间,桌面端支持同时打开多个工作空间,移动端只能切换不同的工作空间。"
"Data": " 中切换工作空间,桌面端支持同时打开多个工作空间,移动端只能切换不同的工作空间。"
}
]
},
{
"ID": "20230107211904-ucohfsb",
"Type": "NodeParagraph",
"Properties": {
"id": "20230107211904-ucohfsb",
"updated": "20230107212338"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多个工作空间需要经常启动,可以考虑为每个工作空间创建不同的启动入口并指定启动参数 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空间绝对路径"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系统上可以复制多个快捷方式,并在每个快捷方式 - 属性 - 目标后跟随工作空间路径参数,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
}
]
},

View file

@ -4,8 +4,9 @@
"Type": "NodeDocument",
"Properties": {
"id": "20230106104645-o838uew",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20230106104714-um1pzdl\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20230106104714-yyezfpg\u0026quot;,\u0026quot;scrollTop\u0026quot;:0,\u0026quot;focusId\u0026quot;:\u0026quot;20230107212432-mkgsqbz\u0026quot;,\u0026quot;focusStart\u0026quot;:150,\u0026quot;focusEnd\u0026quot;:150}",
"title": "工作空間",
"updated": "20230106104750"
"updated": "20230107212432"
},
"Children": [
{
@ -123,7 +124,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -132,7 +133,7 @@
},
{
"Type": "NodeText",
"Data": " - "
"Data": " - "
},
{
"Type": "NodeTextMark",
@ -141,7 +142,39 @@
},
{
"Type": "NodeText",
"Data": " 中切換工作空間,桌面端支持同時打開多個工作空間,移動端只能切換不同的工作空間。"
"Data": " 中切換工作空間,桌面端支持同時打開多個工作空間,移動端只能切換不同的工作空間。"
}
]
},
{
"ID": "20230107212432-mkgsqbz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230107212432-mkgsqbz",
"updated": "20230107212432"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多個工作空間需要經常啟動,可以考慮為每個工作空間創建不同的啟動入口並指定啟動參數 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空間絕對路徑"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系統上可以復制多個快捷方式,並在每個快捷方式 - 屬性 - 目標後跟隨工作空間路徑參數,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
}
]
},

View file

@ -57,10 +57,9 @@ func setBlockAttrs(c *gin.Context) {
id := arg["id"].(string)
attrs := arg["attrs"].(map[string]interface{})
if 1 == len(attrs) && "" != attrs["scroll"] && "dev" == util.Mode {
// 开发环境不记录用户指南滚动位置
b := treenode.GetBlockTree(id)
if nil != b && (model.IsUserGuide(b.BoxID)) {
if 1 == len(attrs) && "" != attrs["scroll"] {
// 不记录用户指南滚动位置
if b := treenode.GetBlockTree(id); nil != b && (model.IsUserGuide(b.BoxID)) {
attrs["scroll"] = ""
}
}