优化
This commit is contained in:
parent
6e536c90b4
commit
bdccdd16a2
@ -14,7 +14,6 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
<el-button @click="handleLogin" type="primary">登 陆</el-button>
|
<el-button @click="handleLogin" type="primary">登 陆</el-button>
|
||||||
<div style="margin:20px 0;">token : {{token}}</div>
|
<div style="margin:20px 0;">token : {{token}}</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -28,7 +27,7 @@ const islzmanagement = window.location.host.indexOf('hostList') > -1 && window.l
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
isShow: true,
|
isShow: false,
|
||||||
islzmanagement,
|
islzmanagement,
|
||||||
input: localStorage.getItem('input'),
|
input: localStorage.getItem('input'),
|
||||||
verify: '888888',
|
verify: '888888',
|
||||||
@ -43,11 +42,6 @@ export default {
|
|||||||
handleClick () {
|
handleClick () {
|
||||||
this.isShow = !this.isShow
|
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 () {
|
async handleLogin () {
|
||||||
localStorage.setItem('input', this.input)
|
localStorage.setItem('input', this.input)
|
||||||
const params = {'userName': this.input, 'password': 'admin', 'uuid': '', 'verify': this.verify, 'verifyCode': this.verify}
|
const params = {'userName': this.input, 'password': 'admin', 'uuid': '', 'verify': this.verify, 'verifyCode': this.verify}
|
||||||
@ -59,7 +53,6 @@ export default {
|
|||||||
if (ress.code === 200) {
|
if (ress.code === 200) {
|
||||||
this.SET_USER_INFO(ress.user)
|
this.SET_USER_INFO(ress.user)
|
||||||
}
|
}
|
||||||
console.log('ress: ', ress)
|
|
||||||
location.reload()
|
location.reload()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user