|
@@ -323,6 +323,7 @@ const rules = {
|
|
|
|
|
|
const handleSubmit = () => {
|
|
|
formRef.value.validate(async (errors) => {
|
|
|
+ formData.value.password = encryptByDES(formData.value.password);
|
|
|
if (!errors) {
|
|
|
formData.value.password = encryptByDES(formData.value.password);
|
|
|
formData.value.amountWarn = Number(formData.value.amountWarn);
|
|
@@ -356,7 +357,7 @@ const handleCancel = () => {
|
|
|
|
|
|
|
|
|
const generatePassword = () => {
|
|
|
- formData.password = Math.random().toString(36).slice(-8);
|
|
|
+ formData.value.password = Math.random().toString(36).slice(-8);
|
|
|
Message.success(t('customer.passwordGenerated'));
|
|
|
};
|
|
|
|