mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
🎨 Improve bazaar
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
3e808209e5
commit
0cec542db2
2 changed files with 2 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ func getUpdatedPackage(c *gin.Context) {
|
|||
if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("frontend", true, &frontend)) {
|
||||
return
|
||||
}
|
||||
|
||||
plugins, widgets, icons, themes, templates := model.GetUpdatedPackages(frontend)
|
||||
ret.Data = map[string]interface{}{
|
||||
"plugins": plugins,
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ func installPackage(data []byte, installPath string) (err error) {
|
|||
srcPath = filepath.Join(unzipPath, dirs[0].Name())
|
||||
}
|
||||
|
||||
if err = filelock.Copy(srcPath, installPath); err != nil {
|
||||
if err = filelock.CopyNewtimes(srcPath, installPath); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue