后端管理模块部署
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
|
||||
import axios, { AxiosInstance, AxiosResponse } from 'axios'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import router from '@/router'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// 表单验证规则
|
||||
|
||||
export const validateAccount = (rule: any, value: string, callback: any) => {
|
||||
export const validateAccount = (_rule: any, value: string, callback: any) => {
|
||||
if (!value) {
|
||||
callback(new Error('请输入账号'))
|
||||
} else if (value.length < 3 || value.length > 50) {
|
||||
@@ -10,7 +10,7 @@ export const validateAccount = (rule: any, value: string, callback: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const validatePassword = (rule: any, value: string, callback: any) => {
|
||||
export const validatePassword = (_rule: any, value: string, callback: any) => {
|
||||
if (!value) {
|
||||
callback(new Error('请输入密码'))
|
||||
} else if (value.length < 6 || value.length > 20) {
|
||||
@@ -20,7 +20,7 @@ export const validatePassword = (rule: any, value: string, callback: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const validateEmail = (rule: any, value: string, callback: any) => {
|
||||
export const validateEmail = (_rule: any, value: string, callback: any) => {
|
||||
if (!value) {
|
||||
callback()
|
||||
} else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
|
||||
@@ -30,7 +30,7 @@ export const validateEmail = (rule: any, value: string, callback: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const validatePhone = (rule: any, value: string, callback: any) => {
|
||||
export const validatePhone = (_rule: any, value: string, callback: any) => {
|
||||
if (!value) {
|
||||
callback()
|
||||
} else if (!/^1[3-9]\d{9}$/.test(value)) {
|
||||
|
||||
Reference in New Issue
Block a user