封装echarts
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div @keyup.enter="onSubmit(formRef)">
|
||||
<div @contextmenu.stop="" id="bubble" class="bubble">
|
||||
<canvas id="bubble-canvas" class="bubble-canvas"></canvas>
|
||||
</div>
|
||||
@@ -46,6 +46,7 @@
|
||||
round
|
||||
type="info"
|
||||
@click="onSubmit(formRef)"
|
||||
|
||||
>
|
||||
登录
|
||||
</el-button>
|
||||
@@ -130,24 +131,23 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
|
||||
grant_type: 'captcha',
|
||||
imageCode: '',
|
||||
verifyCode: 0
|
||||
})
|
||||
.then(res => {
|
||||
console.log('🚀 ~ file: login.vue:134 ~ gongkey ~ res:', res)
|
||||
}).then(res => {
|
||||
console.log('🚀 ~ file: login.vue:134 ~ gongkey ~ res:', res)
|
||||
|
||||
useInfo.setToken(res.data.token_type + ' ' + res.data.access_token, 'auth')
|
||||
// state.submitLoading = false
|
||||
router.push({
|
||||
path: 'admin/dashboard'
|
||||
})
|
||||
useInfo.setToken(res.data.token_type + ' ' + res.data.access_token, 'auth')
|
||||
state.submitLoading = false
|
||||
router.push({
|
||||
path: 'admin/dashboard'
|
||||
})
|
||||
// .catch(res => {
|
||||
// ElMessage({
|
||||
// message: res.message,
|
||||
// type: 'warning'
|
||||
// })
|
||||
// })
|
||||
})
|
||||
// .catch(err => {
|
||||
// state.submitLoading = false
|
||||
// })
|
||||
// state.submitLoading = false
|
||||
})
|
||||
setTimeout(() => {
|
||||
state.submitLoading = false
|
||||
}, 500)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user