feat(sj_1.0.0): 优化更新密码
This commit is contained in:
parent
b640b2beaf
commit
a6e49d21a2
@ -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
|
||||
|
@ -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 })
|
||||
},
|
||||
|
@ -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',
|
||||
|
@ -42,6 +42,7 @@ const local: App.I18n.Schema = {
|
||||
logout: '退出登录',
|
||||
logoutConfirm: '确认退出登录吗?',
|
||||
updatePassword: '修改密码',
|
||||
changePassword: '修改密码',
|
||||
lookForward: '敬请期待',
|
||||
modify: '修改',
|
||||
modifySuccess: '修改成功',
|
||||
|
1
src/typings/app.d.ts
vendored
1
src/typings/app.d.ts
vendored
@ -292,6 +292,7 @@ declare namespace App {
|
||||
logout: string;
|
||||
logoutConfirm: string;
|
||||
updatePassword: string;
|
||||
changePassword: string;
|
||||
lookForward: string;
|
||||
modify: string;
|
||||
modifySuccess: string;
|
||||
|
@ -68,7 +68,6 @@ type RuleKey = Extract<
|
||||
|
||||
const rules = {
|
||||
groupName: [
|
||||
defaultRequiredRule,
|
||||
{
|
||||
required: true,
|
||||
pattern: /^[A-Za-z0-9_-]{1,64}$/,
|
||||
|
Loading…
Reference in New Issue
Block a user