fix: keep_path

This commit is contained in:
soxft
2022-06-28 06:37:29 +00:00
parent 217ed048ca
commit 9398e6eead
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -1216,7 +1216,7 @@ class site_api:
_rTypeCode = 0 if _rType == "301" else 1 _rTypeCode = 0 if _rType == "301" else 1
_typeCode = 0 if _type == "path" else 1 _typeCode = 0 if _type == "path" else 1
_keepPath = 1 if _keepPath == "1" else 0
file_content = "" file_content = ""
# path # path
-3
View File
@@ -1490,9 +1490,6 @@ function to301(siteName, type, obj){
res = JSON.parse(res); res = JSON.parse(res);
if (res.status) { if (res.status) {
layer.close(redirect_form); layer.close(redirect_form);
setTimeout(function() {
location.reload();
}, 1000);
to301(siteName) to301(siteName)
} else { } else {
layer.msg(res.msg); layer.msg(res.msg);