diff --git a/server/urls.py b/server/urls.py index 241ccd5..694e431 100644 --- a/server/urls.py +++ b/server/urls.py @@ -12,16 +12,17 @@ urlpatterns = [ # --------------------------------------------------- path('', to_dashboard), # 跳转列表界面 - path('detail', to_detail), # 跳转详情界面 + path('2_d', to_detail), # 跳转详情界面 + path('s_2_d', share_to_detail), # 从分享链接跳转详细界面 path(r'jsmind_op', JsMindLogView.as_view()), # 更新快照,get日志操作 # --------------------------------------------------- path('create', JsMindView.as_view()), # 创建思维导图 path('list', JsMindView.as_view()), # 查询思维导图 + path('d', JsMindView.as_view()), # 获得导图详情 + path('s_d', JsMindShareView.as_view()), # 获得导图详情 path('delete', JsMindView.as_view()), # 删除思维导图 path('share', JsMindShareView.as_view()), # 分享思维导图 - path('s_t_d', share_to_detail), # 从分享链接进入详细界面 - path('4cbcb74630898f41fd0a', JsMindShareView.as_view()), # 获得导图详情 # --------------------------------------------------- path('register', MindUserView.as_view()), # 用户注册 @@ -29,5 +30,4 @@ urlpatterns = [ path('logout', LogoutView.as_view()), # 用户登出 # --------------------------------------------------- - ] diff --git a/static/html/dashboard.html b/static/html/dashboard.html index 58f0d92..38844e2 100644 --- a/static/html/dashboard.html +++ b/static/html/dashboard.html @@ -94,14 +94,14 @@
${item.coop_mind_name}

- +
@@ -178,7 +178,7 @@ data: {'id': mind_id}, dataType: "json", success: function (resp) { - const url = `s_t_d?u=${resp.data.u}&h=${resp.data.h}` + const url = `s_2_d?u=${resp.data.u}&h=${resp.data.h}` $('#share_mind_modal .modal-body').html(`分享成功,请复制以下链接进行分享:
${window.location.protocol}//${window.location.host}/${url}
`) $('#share_mind_modal_a').click() }, @@ -341,7 +341,7 @@ /**新页面打开*/ setTimeout(function () { const id = resp.data - window.open('detail?id=' + id) + window.open('2_d?id=' + id) }, 500) } } else { diff --git a/static/html/detail.html b/static/html/detail.html index c2636ad..727ba82 100644 --- a/static/html/detail.html +++ b/static/html/detail.html @@ -8,8 +8,8 @@ @@ -51,7 +51,7 @@ let h = `{{ h }}`; const me = this; const from_share = id.length === 0; - const url = from_share ? `4cbcb74630898f41fd0a?u=${u}&h=${h}` : 'list?id=' + id; + const url = from_share ? `s_d?u=${u}&h=${h}` : 'd?id=' + id; $.get(url, function (resp) { if (resp.code === -1) { common_alert(resp.msg)