Browse Source

处理BUG

wangcz 7 years ago
parent
commit
f4ad6cca96

+ 2 - 2
components/register/EnterpriseRegistration.vue

@@ -628,7 +628,7 @@
                 })
                 this.sendEnterpriseCode = false
                 this.enterprise_time = 60
-                this.ImgCode = ''
+                // this.ImgCode = ''
                 var enterpriseTime = setInterval(() => {
                   this.enterprise_time--
                   if (this.enterprise_time <= 0) {
@@ -636,7 +636,7 @@
                     clearInterval(enterpriseTime)
                   }
                 }, 1000)
-                this.getCode()
+                // this.getCode()
               }
             } else {
               return Promise.reject(response.data)

+ 2 - 2
components/register/PersonalRegistration.vue

@@ -674,7 +674,7 @@
                 this.sendPersonalCode = false
                 // this.visible2 = false
                 this.personal_time = 60
-                this.ImgCode = ''
+                // this.ImgCode = ''
                 var personalTime = setInterval(() => {
                   this.personal_time--
                   if (this.personal_time <= 0) {
@@ -682,7 +682,7 @@
                     clearInterval(personalTime)
                   }
                 }, 1000)
-                this.getCode()
+                // this.getCode()
               }
             } else {
               return Promise.reject(response.data)

+ 1 - 1
store/index.js

@@ -13,7 +13,7 @@ export const actions = {
     store.commit('option/SET_COOKIES', cookie)
     // 保存appId和returnUrl信息
     // 保存链接?之后的所有键值对以字符串形式
-    let fullPath = route.fullPath.slice(route.fullPath.lastIndexOf('?')) || ''
+    let fullPath = route.fullPath.lastIndexOf('?') !== -1 ? route.fullPath.slice(route.fullPath.lastIndexOf('?')) : ''
     store.commit('option/SET_FULLPATH', fullPath)
     if (route.query) {
       let appId = route.query.appId || ''