Explorar o código

登录验证码取整。

tomatozq %!s(int64=5) %!d(string=hai) anos
pai
achega
58ffbeaac5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/Login.vue

+ 1 - 1
src/views/Login.vue

@@ -102,7 +102,7 @@ export default {
       wxLoading: false,
       wxLoginQrcode: '',
       wxQueryHandler: 0,
-      loginCode: Math.random().toFixed(6)*1000000
+			loginCode: parseInt(Math.random().toFixed(6)*1000000)
     };
   },
   watch: {