2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 10:47:21 +08:00

fix(website): root setting and clean log

This commit is contained in:
耗子
2023-07-27 02:29:00 +08:00
parent ff1f2569dd
commit 653900fd73
2 changed files with 2 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ func (c *WebsiteController) SaveConfig(ctx http.Context) {
Error(ctx, http.StatusBadRequest, "配置文件中root标记位格式错误")
return
}
rootNew := strings.Replace(root, match[1], path, -1)
rootNew := strings.Replace(root, match[1], ctx.Request().Input("root"), -1)
raw = strings.Replace(raw, root, rootNew, -1)
// 默认文件

View File

@@ -289,7 +289,7 @@ Date: 2023-07-24
layer.close(index)
layer.load()
admin.req({
url: '/api/panel/website/clearSiteLog'
url: '/api/panel/website/clearLog'
, type: 'post'
, data: {name: params.config.name}
, success: function (res) {