封装echarts

This commit is contained in:
GGJ
2023-12-27 15:06:23 +08:00
parent d42936398e
commit 22cee9bbb7
8 changed files with 466 additions and 145 deletions

View File

@@ -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)
}
})
}