Quellcode durchsuchen

Merge branch 'develop' of http://git.chelingzhu.com/jianguan-web/qpls-md-html into develop

chenrui vor 3 Jahren
Ursprung
Commit
11a6f72f98
1 geänderte Dateien mit 11 neuen und 11 gelöschten Zeilen
  1. 11 11
      src/views/user/Login.vue

+ 11 - 11
src/views/user/Login.vue

@@ -150,17 +150,17 @@ export default {
     }
   },
   created () {
-    const userAgent = navigator.userAgent // 取得浏览器的userAgent字符串
-    const isIE = window.ActiveXObject || 'ActiveXObject' in window
-    const isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf('rv:11.0') > -1
-    if (isIE) {
-      const reIE = new RegExp('MSIE (\\d+\\.\\d+);')
-      reIE.test(userAgent)
-      const fIEVersion = parseFloat(RegExp['$1'])
-      if (userAgent.indexOf('MSIE 6.0') != -1 || fIEVersion < 11 || isIE11) {
-        this.$router.push({ name: 'updateBrowser' })
-      }
-    }
+    // const userAgent = navigator.userAgent // 取得浏览器的userAgent字符串
+    // const isIE = window.ActiveXObject || 'ActiveXObject' in window
+    // const isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf('rv:11.0') > -1
+    // if (isIE) {
+    //   const reIE = new RegExp('MSIE (\\d+\\.\\d+);')
+    //   reIE.test(userAgent)
+    //   const fIEVersion = parseFloat(RegExp['$1'])
+    //   if (userAgent.indexOf('MSIE 6.0') != -1 || fIEVersion < 11 || isIE11) {
+    //     this.$router.push({ name: 'updateBrowser' })
+    //   }
+    // }
     // get2step({ })
     //   .then(res => {
     //     this.requiredTwoStepCaptcha = res.result.stepCode