fix: correct typos

This commit is contained in:
fwindpeak 2022-05-28 10:10:10 +08:00 committed by GitHub
parent 4157c7bccc
commit 636201df80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 16 deletions

View File

@ -21,7 +21,7 @@
### ✔️ refactor
- 重构登页,更偏向实际业务场景
- 重构登页,更偏向实际业务场景
- 使用`unocss`替换`windicss``unocss`开发环境下性能更好,没有内存泄露,而且`api`使用上兼容`windicss`
### 🍏 Perf

View File

@ -3,7 +3,7 @@ buttons:
hsfullscreen: 全屏
hsexitfullscreen: 退出全屏
hsrefreshRoute: 刷新路由
hslogin:
hslogin:
hsadd: 新增
hsmark: 标记/取消
hssave: 保存
@ -20,7 +20,7 @@ buttons:
hscloseAllTabs: 关闭全部标签页
menus:
hshome: 首页
hslogin:
hslogin:
hssysManagement: 系统管理
hsUser: 用户管理
hsDict: 字典管理

View File

@ -98,7 +98,7 @@ function translationEn() {
</el-dropdown-menu>
</template>
</el-dropdown>
<!-- 退出登 -->
<!-- 退出登 -->
<el-dropdown trigger="click">
<span class="el-dropdown-link">
<img v-if="avatars" :src="avatars" :style="avatarsStyle" />

View File

@ -125,7 +125,7 @@ function translationEn() {
</el-dropdown-menu>
</template>
</el-dropdown>
<!-- 退出登 -->
<!-- 退出登 -->
<el-dropdown trigger="click">
<span class="el-dropdown-link">
<img v-if="avatars" :src="avatars" :style="avatarsStyle" />

View File

@ -172,7 +172,7 @@ function translationEn() {
</el-dropdown-menu>
</template>
</el-dropdown>
<!-- 退出登 -->
<!-- 退出登 -->
<el-dropdown trigger="click">
<span class="el-dropdown-link">
<img v-if="avatars" :src="avatars" :style="avatarsStyle" />

View File

@ -26,7 +26,7 @@ export const useUserStore = defineStore({
name,
// 前端生成的验证码(按实际需求替换)
verifyCode: "",
// 登陆显示组件判断 0登陆 1手机登陆 2二维码登陆 3注册 4忘记密码默认0登陆
// 登录显示组件判断 0登录 1手机登录 2二维码登录 3注册 4忘记密码默认0登录
currentPage: 0
}),
actions: {

View File

@ -21,9 +21,9 @@ const onLogin = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
await formEl.validate((valid, fields) => {
if (valid) {
//
//
setTimeout(() => {
message.success("登成功");
message.success("登成功");
loading.value = false;
}, 2000);
} else {
@ -83,7 +83,7 @@ function onBack() {
:loading="loading"
@click="onLogin(ruleFormRef)"
>
</el-button>
</el-form-item>
</Motion>

View File

@ -49,7 +49,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
accessToken: "eyJhbGciOiJIUzUxMiJ9.test"
});
initRouter("admin").then(() => {});
message.success("登成功");
message.success("登成功");
router.push("/");
}, 2000);
} else {
@ -179,7 +179,7 @@ watch(imgCode, value => {
<span
v-for="(item, index) in thirdParty"
:key="index"
:title="`${item.title}登`"
:title="`${item.title}登`"
>
<IconifyIconOnline
:icon="`ri:${item.icon}-fill`"
@ -190,9 +190,9 @@ watch(imgCode, value => {
</div>
</el-form-item>
</Motion>
<!-- 手机号登 -->
<!-- 手机号登 -->
<phone v-if="currentPage === 1" />
<!-- 二维码登 -->
<!-- 二维码登 -->
<qrCode v-if="currentPage === 2" />
<!-- 注册 -->
<regist v-if="currentPage === 3" />

View File

@ -10,7 +10,7 @@ export const REGEXP_SIX = /^\d{6}$/;
export const REGEXP_PWD =
/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)(?!^.*[\u4E00-\u9FA5].*$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){8,18}$/;
/** 登校验 */
/** 登校验 */
const loginRules = reactive(<FormRules>{
username: [{ required: true, message: "请输入账号", trigger: "blur" }],
password: [
@ -45,7 +45,7 @@ const loginRules = reactive(<FormRules>{
]
});
/** 手机登校验 */
/** 手机登校验 */
const phoneRules = reactive(<FormRules>{
phone: [
{