chenxiong 3 tahun lalu
induk
melakukan
a5e52fb52a
1 mengubah file dengan 13 tambahan dan 13 penghapusan
  1. 13 13
      src/router/index.js

+ 13 - 13
src/router/index.js

@@ -353,20 +353,20 @@ router.beforeEach((to,from,next) => {
               }
 
             }).catch(err => {
-              // console.log(err,'err')
-              // //可以学习,开启锁定
-              //   canToBank = 1;
-              // request.lockLockAction({
-              //   action:'bank'
-              // }).then(res => {
-              // })
-              // canToBank = setInterval(() => {
-              //   request.lockLockAction({
-              //     action:'bank'
-              //   }).then(res => {
+              console.log(err,'err')
+              //可以学习,开启锁定
+                canToBank = 1;
+              request.lockLockAction({
+                action:'bank'
+              }).then(res => {
+              })
+              canToBank = setInterval(() => {
+                request.lockLockAction({
+                  action:'bank'
+                }).then(res => {
                   
-              //   })
-              // }, 10000);
+                })
+              }, 10000);
               next()
             })