Browse Source

fix: 更新生产环境API地址并修正注册页面账号验证逻辑

更新生产环境的API地址为最新版本,并修正注册页面中账号验证的正则表达式,确保账号必须包含字母
master
前端-胡立永 1 month ago
parent
commit
7484b00c88
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      config.js
  2. +1
    -1
      pages/register/register.vue

+ 2
- 1
config.js View File

@ -17,7 +17,8 @@ const config = {
prod : { prod : {
// baseUrl : 'https://uav-api.xzaiyp.top/uav-api', // baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
// baseUrl : 'https://api.olxbookbub.top/uav-oxl-api',//国外服务器 // baseUrl : 'https://api.olxbookbub.top/uav-oxl-api',//国外服务器
baseUrl : 'https://api.oxlbook.top/uav-oxl-api',//国外服务器第二版 2024-12-14
// baseUrl : 'https://api.oxlbook.top/uav-oxl-api',//国外服务器第二版 2024-12-14
baseUrl : 'https://api.oxlking.com/uav-oxl-api/',//国外服务器第三版 2025-5-8
}, },
} }


+ 1
- 1
pages/register/register.vue View File

@ -88,7 +88,7 @@
register() { register() {
// //
if (!/[A-Za-z]+$/.test(this.form.account)) {
if (!/[A-Za-z]/.test(this.form.account)) {
uni.showToast({ uni.showToast({
title: this.$t('page.register.accountError'), title: this.$t('page.register.accountError'),
icon: 'none' icon: 'none'


Loading…
Cancel
Save