Browse Source

密码加密

master
蔡玲玲 3 months ago
parent
commit
6e5e51440a
  1. 3
      lms/nladmin-ui/src/views/wms/produceScreen/setup.vue

3
lms/nladmin-ui/src/views/wms/produceScreen/setup.vue

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

Loading…
Cancel
Save