diff --git a/index.html b/index.html index e9d59e7..766ad72 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ - \ No newline at end of file diff --git a/static/js/common/main.js b/static/js/common/main.js index 2495d6c..bac87ee 100644 --- a/static/js/common/main.js +++ b/static/js/common/main.js @@ -45,8 +45,8 @@ requirejs.config({ require(['jquery', 'bootstrap', 'nprogress']); require(["jquery"], function ($) { - var currentPage = $("#current-page").attr("current-page"); - var targetModule = $("#current-page").attr("target-module"); + var currentPage = $("#require-page").attr("current-page"); + var targetModule = $("#require-page").attr("target-module"); if (targetModule) { // 页面加载完毕后再执行相关业务代码比较稳妥 $(function () {