后台页面跳转时保存上一页状态,同时增加返回按钮

This commit is contained in:
virusdefender
2015-08-17 16:33:05 +08:00
parent 3385ddce18
commit ce5b0804b9
6 changed files with 140 additions and 36 deletions

View File

@@ -41,6 +41,19 @@ define("admin", ["jquery", "avalon"], function ($, avalon) {
vm.template_url = "template/problem/edit_problem.html";
});
vm.$watch("showProblemListPage", function(){
vm.template_url = "template/problem/problem_list.html";
});
vm.$watch("showGroupListPage", function(){
vm.template_url = "template/group/group.html";
});
vm.$watch("showProblemSubmissionPage", function(problemId){
vm.problemId = problemId;
vm.template_url = "template/problem/submission_list.html";
});
avalon.scan();
li_active("#li-" + hash.replace("/", "-"));