后端管理模块部署

This commit is contained in:
2025-10-30 16:55:22 +08:00
parent 093d07ab76
commit 8f2133f3af
16 changed files with 649 additions and 52 deletions
+1 -1
View File
@@ -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'
+4 -4
View File
@@ -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)) {