From ac9a92ffda977a8640c8e24d459b67c9bb570908 Mon Sep 17 00:00:00 2001 From: yangjian Date: Fri, 8 Jan 2021 20:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=A1=A3=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=90=8E=E7=9A=84=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/app_doc/editor/create_doc.html | 4 ++-- template/app_doc/editor/modify_doc.html | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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(){