소스 검색

文章404跳转文章首页

zhengjinyi 2 년 전
부모
커밋
3768dcef58
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/main/resources/static/js/article/error.js
  2. 1 1
      src/main/resources/templates/article/error.html

+ 2 - 2
src/main/resources/static/js/article/error.js

@@ -1,7 +1,7 @@
 $(function () {
     var coreServer = $('#coreServer').val()
     if (!coreServer && coreServer.length > 0) {
-        window.location.href = '/404.html';
+        window.location.href = '/info/404.html';
     }
 })
 
@@ -48,7 +48,7 @@ var errorPage = new Vue({
             this.timer = setInterval(function () {
                 if(--self.countdown <= 0){
                     clearInterval(self.timer);
-                    window.location.href = '/'
+                    window.location.href = '/info/center-3-1.html'
                 }
             }, 1000);
         },

+ 1 - 1
src/main/resources/templates/article/error.html

@@ -21,7 +21,7 @@
   <div id="errorContent">
     <img src="/img/base/404.png">
     <p>您访问的页面不存在,<span v-text="countdown"></span>秒后将自动返回首页</p>
-    <a href="/index.html">返回首页</a>
+    <a href="/info/center-3-1.html">返回首页</a>
   </div>
 
   <div class="recommend">