feat(sj_1.0.0): 优化更新密码

This commit is contained in:
opensnail 2024-06-09 09:11:58 +08:00
parent b640b2beaf
commit a6e49d21a2
6 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,7 @@ async function handleSubmit() {
</script>
<template>
<OperateDrawer v-model="visible" title="修改密码">
<OperateDrawer v-model="visible" :title="$t('common.changePassword')">
<NForm ref="formRef" :model="model" :rules="rules">
<NFormItem :label="$t('page.userManager.oldPassword')" path="oldPassword">
<NInput

View File

@ -36,7 +36,7 @@ type DropdownOption =
const options = computed(() => {
const opts: DropdownOption[] = [
{
label: $t('common.updatePassword'),
label: $t('common.changePassword'),
key: 'password',
icon: SvgIconVNode({ icon: 'ph:password', fontSize: 18 })
},

View File

@ -42,6 +42,7 @@ const local: App.I18n.Schema = {
logout: 'Logout',
logoutConfirm: 'Are you sure you want to log out?',
updatePassword: 'Update password',
changePassword: 'Change password',
lookForward: 'Coming soon',
modify: 'Modify',
modifySuccess: 'Modify Success',

View File

@ -42,6 +42,7 @@ const local: App.I18n.Schema = {
logout: '退出登录',
logoutConfirm: '确认退出登录吗?',
updatePassword: '修改密码',
changePassword: '修改密码',
lookForward: '敬请期待',
modify: '修改',
modifySuccess: '修改成功',

View File

@ -292,6 +292,7 @@ declare namespace App {
logout: string;
logoutConfirm: string;
updatePassword: string;
changePassword: string;
lookForward: string;
modify: string;
modifySuccess: string;

View File

@ -68,7 +68,6 @@ type RuleKey = Extract<
const rules = {
groupName: [
defaultRequiredRule,
{
required: true,
pattern: /^[A-Za-z0-9_-]{1,64}$/,