Fix bug
This commit is contained in:
parent
2e6905c74c
commit
b20b975935
48 changed files with 146 additions and 158 deletions
|
|
@ -11,21 +11,21 @@ export default Vue.extend({
|
|||
methods: {
|
||||
reset() {
|
||||
(this as any).apis.input({
|
||||
title: '%i18n:!@enter-current-password%',
|
||||
title: '%i18n:@enter-current-password%',
|
||||
type: 'password'
|
||||
}).then(currentPassword => {
|
||||
(this as any).apis.input({
|
||||
title: '%i18n:!@enter-new-password%',
|
||||
title: '%i18n:@enter-new-password%',
|
||||
type: 'password'
|
||||
}).then(newPassword => {
|
||||
(this as any).apis.input({
|
||||
title: '%i18n:!@enter-new-password-again%',
|
||||
title: '%i18n:@enter-new-password-again%',
|
||||
type: 'password'
|
||||
}).then(newPassword2 => {
|
||||
if (newPassword !== newPassword2) {
|
||||
(this as any).apis.dialog({
|
||||
title: null,
|
||||
text: '%i18n:!@not-match%',
|
||||
text: '%i18n:@not-match%',
|
||||
actions: [{
|
||||
text: 'OK'
|
||||
}]
|
||||
|
|
@ -36,7 +36,7 @@ export default Vue.extend({
|
|||
currentPasword: currentPassword,
|
||||
newPassword: newPassword
|
||||
}).then(() => {
|
||||
(this as any).apis.notify('%i18n:!@changed%');
|
||||
(this as any).apis.notify('%i18n:@changed%');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue