Browse Source

fix: 对password进行加密传输

master
niushuai233 2 years ago
parent
commit
ccb078d66e
  1. 6
      src/views/modules/tunnel/modules/ServerInfoModal.vue

6
src/views/modules/tunnel/modules/ServerInfoModal.vue

@ -39,6 +39,7 @@ @@ -39,6 +39,7 @@
<script>
import { httpAction } from '@/api/manage'
import EncryptUtil from '@/utils/encryption/encrypt'
export default {
name: 'ServerInfoModal',
@ -47,6 +48,7 @@ export default { @@ -47,6 +48,7 @@ export default {
title: '操作',
visible: false,
model: {},
password: '',
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
@ -81,6 +83,7 @@ export default { @@ -81,6 +83,7 @@ export default {
},
edit(record) {
this.model = Object.assign({}, record)
this.password = this.model.password;
if (this.model.status || this.model.status == 1) {
this.model.status = true
} else {
@ -114,6 +117,9 @@ export default { @@ -114,6 +117,9 @@ export default {
} else {
params.status = 0
}
if (this.password != params.password) {
params.password = EncryptUtil.encrypt(params.password);
}
let success = true;
httpAction(httpurl, params, method)
.then(res => {

Loading…
Cancel
Save