feat(sj_1.0.0): 优化更新密码
This commit is contained in:
parent
b640b2beaf
commit
a6e49d21a2
@ -64,7 +64,7 @@ async function handleSubmit() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<OperateDrawer v-model="visible" title="修改密码">
|
<OperateDrawer v-model="visible" :title="$t('common.changePassword')">
|
||||||
<NForm ref="formRef" :model="model" :rules="rules">
|
<NForm ref="formRef" :model="model" :rules="rules">
|
||||||
<NFormItem :label="$t('page.userManager.oldPassword')" path="oldPassword">
|
<NFormItem :label="$t('page.userManager.oldPassword')" path="oldPassword">
|
||||||
<NInput
|
<NInput
|
||||||
|
@ -36,7 +36,7 @@ type DropdownOption =
|
|||||||
const options = computed(() => {
|
const options = computed(() => {
|
||||||
const opts: DropdownOption[] = [
|
const opts: DropdownOption[] = [
|
||||||
{
|
{
|
||||||
label: $t('common.updatePassword'),
|
label: $t('common.changePassword'),
|
||||||
key: 'password',
|
key: 'password',
|
||||||
icon: SvgIconVNode({ icon: 'ph:password', fontSize: 18 })
|
icon: SvgIconVNode({ icon: 'ph:password', fontSize: 18 })
|
||||||
},
|
},
|
||||||
|
@ -42,6 +42,7 @@ const local: App.I18n.Schema = {
|
|||||||
logout: 'Logout',
|
logout: 'Logout',
|
||||||
logoutConfirm: 'Are you sure you want to log out?',
|
logoutConfirm: 'Are you sure you want to log out?',
|
||||||
updatePassword: 'Update password',
|
updatePassword: 'Update password',
|
||||||
|
changePassword: 'Change password',
|
||||||
lookForward: 'Coming soon',
|
lookForward: 'Coming soon',
|
||||||
modify: 'Modify',
|
modify: 'Modify',
|
||||||
modifySuccess: 'Modify Success',
|
modifySuccess: 'Modify Success',
|
||||||
|
@ -42,6 +42,7 @@ const local: App.I18n.Schema = {
|
|||||||
logout: '退出登录',
|
logout: '退出登录',
|
||||||
logoutConfirm: '确认退出登录吗?',
|
logoutConfirm: '确认退出登录吗?',
|
||||||
updatePassword: '修改密码',
|
updatePassword: '修改密码',
|
||||||
|
changePassword: '修改密码',
|
||||||
lookForward: '敬请期待',
|
lookForward: '敬请期待',
|
||||||
modify: '修改',
|
modify: '修改',
|
||||||
modifySuccess: '修改成功',
|
modifySuccess: '修改成功',
|
||||||
|
1
src/typings/app.d.ts
vendored
1
src/typings/app.d.ts
vendored
@ -292,6 +292,7 @@ declare namespace App {
|
|||||||
logout: string;
|
logout: string;
|
||||||
logoutConfirm: string;
|
logoutConfirm: string;
|
||||||
updatePassword: string;
|
updatePassword: string;
|
||||||
|
changePassword: string;
|
||||||
lookForward: string;
|
lookForward: string;
|
||||||
modify: string;
|
modify: string;
|
||||||
modifySuccess: string;
|
modifySuccess: string;
|
||||||
|
@ -68,7 +68,6 @@ type RuleKey = Extract<
|
|||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
groupName: [
|
groupName: [
|
||||||
defaultRequiredRule,
|
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
pattern: /^[A-Za-z0-9_-]{1,64}$/,
|
pattern: /^[A-Za-z0-9_-]{1,64}$/,
|
||||||
|
Loading…
Reference in New Issue
Block a user