Browse Source

Revert "有时location.reload(true);并不能更新html"

This reverts commit f550096deba4feda78033987308bd15c4ef975ac.
Michael Wang 5 years ago
parent
commit
7e7ae1d87a
1 changed files with 1 additions and 7 deletions
  1. 1 7
      src/features/Login/Login.vue

+ 1 - 7
src/features/Login/Login.vue

@@ -328,13 +328,7 @@ export default {
           resolve();
         }, 2000);
       });
-      // 有时不能更新html
-      // location.reload(true);
-      if (location.search) {
-        window.location.href = window.location.href + "&newDate=" + Date.now();
-      } else {
-        window.location.href = window.location.href + "?newDate=" + Date.now();
-      }
+      location.reload(true);
     }
     // manual precache for models
     fetch(