diff --git a/template/app_doc/editor/create_doc.html b/template/app_doc/editor/create_doc.html index 759abc3..93dd7b5 100644 --- a/template/app_doc/editor/create_doc.html +++ b/template/app_doc/editor/create_doc.html @@ -312,8 +312,8 @@ if(status === 1){ layer.msg('发布成功',{time:1000},function(){ md_changed = false; - //跳转到文档修改 - window.location.href = "/modify_doc/"+r.data.doc+"/"; + //跳转到文档阅读页面 + window.location.href = "/project-" + r.data.pro + "/doc-" + r.data.doc }); }else{ layer.msg('保存成功',{time:1000},function(){ diff --git a/template/app_doc/editor/modify_doc.html b/template/app_doc/editor/modify_doc.html index 0055572..51c4127 100644 --- a/template/app_doc/editor/modify_doc.html +++ b/template/app_doc/editor/modify_doc.html @@ -293,8 +293,7 @@ if(status === 1){ layer.msg('发布成功',function(){ md_changed = false; - // window.location.href = "{% url 'doc' pro_id=doc.top_doc doc_id=doc.id %}"; - window.location.href = "/modify_doc/{{doc.id}}/"; + window.location.href = "{% url 'doc' pro_id=doc.top_doc doc_id=doc.id %}"; }); }else{ layer.msg('保存成功',{time:1000},function(){