Skip to content

Commit

Permalink
📝 Add user guide chapter Database #10340
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 8, 2024
1 parent b0556a2 commit 4b19979
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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}}]}
5 changes: 5 additions & 0 deletions kernel/model/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b19979

Please sign in to comment.