update
This commit is contained in:
@@ -14,6 +14,7 @@ urlpatterns = [
|
||||
path('', to_dashboard), # 跳转列表界面
|
||||
path('2_d', to_detail), # 跳转详情界面
|
||||
path('s_2_d', share_to_detail), # 从分享链接跳转详细界面
|
||||
path('2_s', to_share), # 到分享界面
|
||||
path(r'jsmind_op', JsMindLogView.as_view()), # 更新快照,get日志操作
|
||||
|
||||
# ---------------------------------------------------
|
||||
|
||||
@@ -3,16 +3,16 @@ from django.shortcuts import render
|
||||
|
||||
def to_dashboard(request):
|
||||
"""
|
||||
界面
|
||||
主界面
|
||||
"""
|
||||
return render(request, "html/dashboard.html")
|
||||
|
||||
|
||||
def to_list(request):
|
||||
def to_share(request):
|
||||
"""
|
||||
列表界面
|
||||
分享页面
|
||||
"""
|
||||
return render(request, "html/list.html")
|
||||
return render(request, "html/dashboard.html")
|
||||
|
||||
|
||||
def to_detail(request):
|
||||
@@ -25,6 +25,7 @@ def to_detail(request):
|
||||
|
||||
def share_to_detail(request):
|
||||
"""
|
||||
详情页面
|
||||
"""
|
||||
param = {'h': request.GET.get('h'), 'u': request.GET.get('u')}
|
||||
return render(request, "html/detail.html", param)
|
||||
|
||||
Reference in New Issue
Block a user