feat:使用 router name 进行跳转

This commit is contained in:
YunaiV
2025-10-20 19:24:14 +08:00
parent fba34d6ceb
commit 1b869a1e3a
18 changed files with 22 additions and 22 deletions

View File

@@ -152,8 +152,8 @@ async function handleDeploy() {
// 发布
await deployModel(formData.value.id);
message.success('发布成功');
// TODO 返回列表页
await router.push({ name: '/ai/workflow' });
// 返回列表页
await router.push({ name: 'AiWorkflow' });
} catch (error: any) {
console.error('发布失败:', error);
message.warning(error.message || '发布失败');