密码加密
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user