Merge pull request #8 from 6get-xiaofan/main

Update README.md and Update resetPwd.vue
This commit is contained in:
valarchie 2024-05-28 11:05:01 +08:00 committed by GitHub
commit 2770791fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -51,9 +51,11 @@
### 开发环境
node 版本应不小于 16 pnpm 版本应不小于 6
版本请勿过新,有先选择 node=16, pnpm=7.30.5
如果您还没安装 pnpm请执行下面命令进行安装mac 用户遇到安装报错请在命令前加上 sudo 如果是 windows 用户 用使用管理员 power shell 来执行
Node.js 版本要求16.0+
pnpm 版本要求6.0+
如果您还没安装 pnpm请执行下面命令进行安装mac 用户遇到安装报错请在命令前加上 sudo 如果是 windows 用户,使用 power shell 管理员权限执行
```
npm install -g pnpm
@ -68,7 +70,7 @@ pnpm install
启动平台
```
pnpm dev
pnpm run dev
```
不管是什么源,我们都可以不用管,直接执行下面命令即可

View File

@ -29,9 +29,8 @@ const rules = ref({
newPassword: [
{ required: true, message: "新密码不能为空", trigger: "blur" },
{
min: 6,
max: 20,
message: "长度在 6 到 20 个字符",
pattern: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)(?!^.*[\u4E00-\u9FA5].*$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){8,18}$/,
message: "新密码格式应为8-18位数字、字母、符号的任意两种组合",
trigger: "blur"
}
],