ming 1 rok temu
rodzic
commit
da4877f243
1 zmienionych plików z 2 dodań i 1 usunięć
  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',