Skip to content

Commit

Permalink
fix: 全部文本 失效
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Mar 13, 2024
1 parent 7b23e70 commit 5ab2f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func Serve(port int, silent bool, prefix string) {
DictDir: filepath.Join(prefix, "dict"),
}
res.Text = util.WalkDirWithSuffix(res.TextDir, ".txt")
textList = res.Text
res.Dict = util.WalkDirWithSuffix(res.DictDir, ".txt")
json.NewEncoder(w).Encode(res)
})
Expand Down

0 comments on commit 5ab2f1d

Please sign in to comment.