From 01d8ebbd40f7a6e97ee89a1a190b3c04bc4a6181 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 25 Dec 2024 14:52:57 +0800 Subject: [PATCH] update --- web/static/app/site.js | 3 ++- web/utils/site.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/static/app/site.js b/web/static/app/site.js index b0ebcacb6..ad07b015e 100755 --- a/web/static/app/site.js +++ b/web/static/app/site.js @@ -619,7 +619,8 @@ function syncDeleteSite(dataList,successCount,errorMsg,path){ * @param {Int} id 网站ID */ function domainEdit(id, name, msg, status) { - $.post('/site/get_domain' ,{pid:id}, function(domain) { + $.post('/site/get_domain' ,{pid:id}, function(data) { + var domain = data.data; var echoHtml = ""; for (var i = 0; i < domain.length; i++) { diff --git a/web/utils/site.py b/web/utils/site.py index d0b6a1259..e43aa9362 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -591,7 +591,7 @@ class sites(object): # 获取域名列表 def getDomain(self, site_id): data = thisdb.getDomainBySiteId(site_id) - return data + return mw.returnData(True, 'ok', data) # 获取日志内容 def getLogs(self, siteName):