mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix: fix bug for mobile verify code function not available in register page
This commit is contained in:
		@@ -175,6 +175,7 @@ func authorizeMiddleware(s *AppServer) gin.HandlerFunc {
 | 
			
		||||
		if c.Request.URL.Path == "/api/user/login" ||
 | 
			
		||||
			c.Request.URL.Path == "/api/admin/login" ||
 | 
			
		||||
			c.Request.URL.Path == "/api/user/register" ||
 | 
			
		||||
			c.Request.URL.Path == "/api/sms/status" ||
 | 
			
		||||
			strings.HasPrefix(c.Request.URL.Path, "/api/verify/") ||
 | 
			
		||||
			strings.HasPrefix(c.Request.URL.Path, "/static/") ||
 | 
			
		||||
			c.Request.URL.Path == "/api/admin/config/get" {
 | 
			
		||||
 
 | 
			
		||||
@@ -139,6 +139,9 @@ const register = function () {
 | 
			
		||||
    return ElMessage.error('两次输入密码不一致');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (formData.value.code === '') {
 | 
			
		||||
    formData.value.code = 0
 | 
			
		||||
  }
 | 
			
		||||
  httpPost('/api/user/register', formData.value).then(() => {
 | 
			
		||||
    ElMessage.success({"message": "注册成功,即将跳转到登录页...", onClose: () => router.push("login")})
 | 
			
		||||
  }).catch((e) => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user