scorpio hace 2 años
padre
commit
4276d58f3e
Se han modificado 1 ficheros con 8 adiciones y 10 borrados
  1. 8 10
      src/page/login.vue

+ 8 - 10
src/page/login.vue

@@ -203,11 +203,18 @@ export default {
     qrCodeLogin: {
       handler(val) {
         if (val) {
-          this.qrCode()
           this.checkLogin()
         }
       },
       immediate: true
+    },
+    qrCodeText: {
+      handler(val) {
+        if (val.length === 0) {
+          this.qrCode()
+        }
+      },
+      immediate: true
     }
   },
   setup() {
@@ -259,7 +266,6 @@ export default {
   methods: {
     init() {
       this.dev =
-        window.location.href.indexOf('localhost') > -1 ||
         window.location.href.indexOf('https://test.wutongshucloud.com/') > -1 ||
         window.location.href.indexOf('192.168.31') > -1
       sessionStorage.setItem('dev', this.dev)
@@ -310,14 +316,6 @@ export default {
         '_blank' // <- This is what makes it open in a new window.
       )
     },
-    loginAdmin() {
-      this.form.name = '15587166921'
-      this.form.pass = 'wtkj@123'
-    },
-    loginOther() {
-      this.form.name = '15587160283'
-      this.form.pass = 'wtkj@123'
-    },
     getInfo() {
       this.$api.login.getUserInfo().then(res => {
         if (res.code === 200) {