mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-19 04:44:27 +08:00
修复首页‘注销失败’ bug
This commit is contained in:
@@ -205,14 +205,16 @@ const rainbowColor = (index) => {
|
|||||||
return `hsl(${hue}, 90%, 50%)` // 色调(hue),饱和度(70%),亮度(50%)
|
return `hsl(${hue}, 90%, 50%)` // 色调(hue),饱和度(70%),亮度(50%)
|
||||||
}
|
}
|
||||||
|
|
||||||
httpGet('/api/user/logout')
|
const logout = function () {
|
||||||
.then(() => {
|
httpGet('/api/user/logout')
|
||||||
removeUserToken()
|
.then(() => {
|
||||||
router.push('/login')
|
removeUserToken()
|
||||||
})
|
router.push('/login')
|
||||||
.catch(() => {
|
})
|
||||||
ElMessage.error('注销失败!')
|
.catch(() => {
|
||||||
})
|
ElMessage.error('注销失败!')
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user