fix(登录): 修复登录流程问题并优化样式

- 在登录前清除本地存储的用户数据
- 允许直接访问登录页面无需重定向
- 调整销售时间线组件的字体大小和间距
This commit is contained in:
2025-08-28 21:37:50 +08:00
parent 21ef158ce4
commit 2f380b1fe5
3 changed files with 32 additions and 23 deletions

View File

@@ -395,6 +395,9 @@ const handleLogin = async () => {
loading.value = true
errorMessage.value = ''
// 清除本地存储的用户数据,确保使用最新的登录信息
userStore.logout()
try {
// 调用登录API
// token检测