Initial commit

This commit is contained in:
libertyspy
2026-02-08 18:43:42 +08:00
parent 70de3c68a8
commit 76065ed5c4
3 changed files with 10 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
*/ */
export default { export default {
dashboardUrl: '/app/ai/project/management', dashboardUrl: '/app/decision/designer',
// 训练任务监控URL // 训练任务监控URL
taskMonitorUrl: 'http://192.168.1.100:8080', taskMonitorUrl: 'http://192.168.1.100:8080',
// 集群监控URL // 集群监控URL

View File

@@ -18,6 +18,14 @@ export const routes: RouteRecordRaw[] = [
hidden: true, hidden: true,
}, },
} as RouteRecordRedirect, } as RouteRecordRedirect,
{
name: 'signin',
path: '/signin',
meta: {
title: '登录',
},
component: () => import('@/views/signin.vue'),
},
{ {
name: 'decision-designer', name: 'decision-designer',
path: '/app/decision/designer', path: '/app/decision/designer',

View File

@@ -205,7 +205,7 @@ export default defineComponent({
}; };
const handleSelectTree = (tree: BehaviorTree) => { const handleSelectTree = (tree: BehaviorTree) => {
console.error('handleSelectTree', tree); console.info('handleSelectTree', tree);
findOneTreeById(tree.id).then(r => { findOneTreeById(tree.id).then(r => {
if (r.data) { if (r.data) {
let nodeGraph: NodeGraph | null = null; let nodeGraph: NodeGraph | null = null;
@@ -224,7 +224,6 @@ export default defineComponent({
...r.data, ...r.data,
graph: nodeGraph, graph: nodeGraph,
}; };
console.error(currentBehaviorTree.value);
createElements(); createElements();
} else { } else {
message.error(r.msg ?? '行为树不存在.'); message.error(r.msg ?? '行为树不存在.');