mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
fix: keep_path
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user