mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
📝 Add user guide chapter Database https://github.com/siyuan-note/siyuan/issues/10340
This commit is contained in:
parent
b0556a2d41
commit
4b19979c60
2 changed files with 6 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
{"spec":0,"id":"20240208163918-rxu3llx","name":"账单","keyValues":[{"key":{"id":"20240208163918-odyw3i7","name":"成员","type":"block","icon":"","numberFormat":"","template":""},"values":[{"id":"20240208163921-wnf3fqx","keyID":"20240208163918-odyw3i7","blockID":"20240208163920-51nyfyp","type":"block","isDetached":true,"block":{"id":"20240208163920-51nyfyp","content":"Daniel","created":1707381561387,"updated":1707381900674}},{"id":"20240208164408-fwrlt7q","keyID":"20240208163918-odyw3i7","blockID":"20240208164407-q5jgzt1","type":"block","isDetached":true,"block":{"id":"20240208164407-q5jgzt1","content":"Vanessa","created":1707381848145,"updated":1707381890239}}]},{"key":{"id":"20240208164200-aoez2h2","name":"餐饮","type":"number","icon":"","numberFormat":"","template":""},"values":[{"id":"20240208164415-frgrrdi","keyID":"20240208164200-aoez2h2","blockID":"20240208164407-q5jgzt1","type":"number","number":{"content":200,"isNotEmpty":true,"format":"","formattedContent":""}},{"id":"20240208164450-ssb7h5h","keyID":"20240208164200-aoez2h2","blockID":"20240208163920-51nyfyp","type":"number","number":{"content":100,"isNotEmpty":true,"format":"","formattedContent":""}}]},{"key":{"id":"20240208164420-mwu0h5t","name":"服装","type":"number","icon":"","numberFormat":"","template":""},"values":[{"id":"20240208164441-woggrha","keyID":"20240208164420-mwu0h5t","blockID":"20240208164407-q5jgzt1","type":"number","number":{"content":200,"isNotEmpty":true,"format":"","formattedContent":""}},{"id":"20240208164457-fzglttu","keyID":"20240208164420-mwu0h5t","blockID":"20240208163920-51nyfyp","type":"number","number":{"content":100,"isNotEmpty":true,"format":"","formattedContent":""}}]},{"key":{"id":"20240208164505-39qizr5","name":"模板","type":"template","icon":"","numberFormat":"","template":".action{ addf .餐饮 .服装 }"}}],"viewID":"20240208163918-47rg4d7","views":[{"id":"20240208163918-47rg4d7","icon":"","name":"表格","type":"table","table":{"spec":0,"id":"20240208163918-o93ff8j","columns":[{"id":"20240208163918-odyw3i7","wrap":false,"hidden":false,"pin":false,"width":"152px"},{"id":"20240208164200-aoez2h2","wrap":false,"hidden":false,"pin":false,"width":"97px"},{"id":"20240208164420-mwu0h5t","wrap":false,"hidden":false,"pin":false,"width":"126px"},{"id":"20240208164505-39qizr5","wrap":false,"hidden":false,"pin":false,"width":"129px"}],"rowIds":["20240208164407-q5jgzt1","20240208163920-51nyfyp"],"filters":[],"sorts":[],"pageSize":50}}]}
|
||||
|
|
@ -164,6 +164,11 @@ func Mount(boxID string) (alreadyMount bool, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
avDirPath := filepath.Join(util.WorkingDir, "guide", boxID, "storage", "av")
|
||||
if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
|
||||
return
|
||||
}
|
||||
|
||||
if box := Conf.Box(boxID); nil != box {
|
||||
boxConf := box.GetConf()
|
||||
boxConf.Closed = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue