密码加密

This commit is contained in:
2024-08-30 17:48:28 +08:00
parent 8107731e80
commit 6e5e51440a

View File

@@ -46,6 +46,7 @@
</template>
<script>
import { encrypt } from '@/utils/rsaEncrypt'
import crudProduceScreen from './produceScreen'
export default {
data() {
@@ -71,7 +72,7 @@ export default {
this.disabled = false
return
}
crudProduceScreen.authLogin({ username: this.username, password: this.password }).then(res => {
crudProduceScreen.authLogin({ username: this.username, password: encrypt(this.password) }).then(res => {
this.disabled = false
crudProduceScreen.getUserOrDevice({ username: this.username }).then(res => {
this.options = [...res.content]