diff --git a/src/main/resources/static/ruoyi/system/post/add.js b/src/main/resources/static/ruoyi/system/post/add.js index d1aea4d5..9412877e 100644 --- a/src/main/resources/static/ruoyi/system/post/add.js +++ b/src/main/resources/static/ruoyi/system/post/add.js @@ -17,5 +17,5 @@ $("#form-post-add").validate({ /** 岗位管理-新增岗位 */ function add() { - _ajax_save("/system/post/save", $("#form-post-add").serialize()); + _ajax_save(ctx + "/system/post/save", $("#form-post-add").serialize()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/edit.js b/src/main/resources/static/ruoyi/system/post/edit.js index 3b3d6c07..be65a4c6 100644 --- a/src/main/resources/static/ruoyi/system/post/edit.js +++ b/src/main/resources/static/ruoyi/system/post/edit.js @@ -17,5 +17,5 @@ $("#form-post-edit").validate({ /** 岗位管理-修改岗位 */ function edit() { - _ajax_save("/system/post/save", $("#form-post-edit").serialize()); + _ajax_save(ctx + "/system/post/save", $("#form-post-edit").serialize()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/post.js b/src/main/resources/static/ruoyi/system/post/post.js index 937276e1..f4c06c51 100644 --- a/src/main/resources/static/ruoyi/system/post/post.js +++ b/src/main/resources/static/ruoyi/system/post/post.js @@ -1,4 +1,4 @@ -var prefix = "/system/post" +var prefix = ctx + "/system/post" $(function() { var columns = [{ diff --git a/src/main/resources/templates/include.html b/src/main/resources/templates/include.html index 57eade74..b0d9f1dd 100644 --- a/src/main/resources/templates/include.html +++ b/src/main/resources/templates/include.html @@ -5,35 +5,35 @@ - - + + - - - - - + + + + +