优化
This commit is contained in:
parent
6e536c90b4
commit
bdccdd16a2
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user