登录接口参数加密

This commit is contained in:
duyufeng
2024-09-02 11:04:43 +08:00
parent 0cb7edaa7e
commit e8253be8ca
5 changed files with 45 additions and 8 deletions

View File

@@ -80,6 +80,7 @@
import { storeToRefs } from 'pinia';
import { NsMessage } from '/nerv-lib/component';
import { replyDynamRoutesPath } from '/nerv-lib/util/dynamicRoutesss';
import { Enobscure, Deobscure } from '/nerv-lib/util/crypto';
export default defineComponent({
name: 'UserLogin',
@@ -124,11 +125,9 @@
}
});
const submit = (value): void => {
console.log(value);
let data = JSON.stringify({
accountNo: userName.value.trim(),
password: password.value.trim(),
password: Enobscure(password.value.trim()),
});
validator(null, value?.code)
.then(() => {