feat: 初始化项目结构并添加基础配置

添加前后端基础项目结构,包括.gitignore、package.json等配置文件
实现前端基础功能模块,包括路由、状态管理、API请求封装等
添加前端UI组件库和样式体系
配置开发环境Mock系统和构建工具链
This commit is contained in:
2026-03-18 14:03:35 +08:00
parent fc53f5620e
commit 9a387f3eec
504 changed files with 80629 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
// @ts-nocheck
import { isExternal, isNumber, isPassword } from '@/utils/validate'
/**
* @description 判读是否为外链
* @param path
* @returns {boolean}
*/
describe('Utils:isExternal', () => {
it('isExternal', () => {
expect(isExternal('https://baidu.com')).toBe(true)
expect(isExternal('baidu.com')).toBe(false)
})
})
/**
* @description 校验密码是否小于6位
* @param value
* @returns {boolean}
*/
describe('Utils:isPassword', () => {
it('isPassword', () => {
expect(isPassword('123456')).toBe(true)
expect(isPassword('12345')).toBe(false)
})
})
/**
* @description 判断是否为数字
* @param value
* @returns {boolean}
*/
describe('Utils:isNumber', () => {
it('isNumber', () => {
expect(isNumber('123456')).toBe(true)
expect(isNumber('abcd')).toBe(false)
})
})