|
|
@ -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] |
|
|
|