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:
@@ -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)
|
||||
|
||||
// 默认文件
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user