Browse Source

修改全局刷新判断是否是维护中

zhuliu 2 năm trước cách đây
mục cha
commit
92b0962f53
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      RMS-FrontEnd/src/App.vue

+ 6 - 0
RMS-FrontEnd/src/App.vue

@@ -68,6 +68,12 @@ export default {
 
   },
   mounted() {
+    var time = new Date(this.$c.updateTime).getTime()
+    var time2 = new Date().getTime()
+    if(time2 < time){
+        this.$router.push({path: '/'})
+        return false
+    }
     document.addEventListener('mousedown',function(e){
       let btn = document.getElementsByClassName("caidan");
       // let box = document.getElementsByClassName('pizhu')