This commit is contained in:
熊成强 2020-11-09 12:32:24 +08:00
parent 6e536c90b4
commit bdccdd16a2

View File

@ -14,7 +14,6 @@
</el-input>
<el-button @click="handleLogin" type="primary"> </el-button>
<div style="margin:20px 0;">token : {{token}}</div>
</div>
</div>
</template>
@ -28,7 +27,7 @@ const islzmanagement = window.location.host.indexOf('hostList') > -1 && window.l
export default {
data () {
return {
isShow: true,
isShow: false,
islzmanagement,
input: localStorage.getItem('input'),
verify: '888888',
@ -43,11 +42,6 @@ export default {
handleClick () {
this.isShow = !this.isShow
},
// async handleVerify () {
// const params = {'userName': this.input, 'password': 'admin', 'uuid': '', 'verify': this.verify, 'verifyCode': this.verify}
// let res = await apiSendSMS(params)
// console.log('res: ', res)
// },
async handleLogin () {
localStorage.setItem('input', this.input)
const params = {'userName': this.input, 'password': 'admin', 'uuid': '', 'verify': this.verify, 'verifyCode': this.verify}
@ -59,7 +53,6 @@ export default {
if (ress.code === 200) {
this.SET_USER_INFO(ress.user)
}
console.log('ress: ', ress)
location.reload()
}
}