添加任务待办

This commit is contained in:
Wenjie Zhang 2025-05-05 19:48:55 +08:00
parent 044de7e8fd
commit 5b3c8f1a68
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,5 @@
<template>
<!-- TODO 登录页面样式优化1风格和整个系统统一 -->
<div class="login-view">
<div class="login-container">
<div class="login-logo">
@ -144,7 +145,7 @@ const handleLogin = async () => {
//
const redirectPath = sessionStorage.getItem('redirect') || '/';
sessionStorage.removeItem('redirect'); //
//
if (redirectPath === '/') {
// /chat
@ -152,7 +153,7 @@ const handleLogin = async () => {
router.push('/chat');
return;
}
//
try {
//
@ -162,14 +163,14 @@ const handleLogin = async () => {
router.push(`/agent/${data.default_agent_id}`);
return;
}
//
const agentData = await chatApi.getAgents();
if (agentData.agents && agentData.agents.length > 0) {
router.push(`/agent/${agentData.agents[0].name}`);
return;
}
// 退
router.push('/');
} catch (error) {

View File

@ -1,4 +1,5 @@
<template>
<!-- TODO 优化样式表格优化添加一个 utils 的函数用来把时间戳转换为东 8 区的时间并格式化显示出来 -->
<div class="">
<HeaderComponent title="设置" class="setting-header">
@ -221,6 +222,7 @@
@update:config="handleModelLocalPathsUpdate"
/>
</div>
<!-- TODO 用户管理优化添加姓名默认使用用户名配置项 -->
<div class="setting" v-if="state.section === 'user'">
<div class="section-header">
<h2>用户管理</h2>