ming 1 年之前
父節點
當前提交
da4877f243
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      assets/js/commonVue.js

+ 2 - 1
assets/js/commonVue.js

@@ -135,7 +135,8 @@ var app = new Vue({
           }
 
           //首页旧
-          if (res.data[i].sname == '/index.html' && window.location.pathname == '/index.html') {
+
+          if (res.data[i].sname == '/index.html' && (window.location.pathname == '/index.html'||window.location.pathname == '/')) {
             jQuery.ajax({
               type: 'POST',
               dataType: 'json',