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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@ export const REGEXP_SIX = /^\d{6}$/;
export const REGEXP_PWD = 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}$/; /^(?![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>{ const loginRules = reactive(<FormRules>{
username: [{ required: true, message: "请输入账号", trigger: "blur" }], username: [{ required: true, message: "请输入账号", trigger: "blur" }],
password: [ password: [
@ -45,7 +45,7 @@ const loginRules = reactive(<FormRules>{
] ]
}); });
/** 手机登校验 */ /** 手机登校验 */
const phoneRules = reactive(<FormRules>{ const phoneRules = reactive(<FormRules>{
phone: [ phone: [
{ {