feat: add agent exec

This commit is contained in:
engigu
2025-12-27 19:59:15 +08:00
parent f64ece3bde
commit c5a8402782
4 changed files with 414 additions and 1 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
import { ref, onMounted } from 'vue'
import { RouterLink, RouterView, useRoute } from 'vue-router'
import { resetAuthCache } from '@/router'
import { LayoutDashboard, ListTodo, FileCode, Settings, LogOut, ScrollText, Terminal, Variable, KeyRound, Package, Menu, X } from 'lucide-vue-next'
import { LayoutDashboard, ListTodo, FileCode, Settings, LogOut, ScrollText, Terminal, Variable, KeyRound, Package, Menu, X, Server } from 'lucide-vue-next'
import { Button } from '@/components/ui/button'
import ThemeToggle from '@/components/ThemeToggle.vue'
import { api } from '@/api'
@@ -16,6 +16,7 @@ const mobileMenuOpen = ref(false)
const navItems = [
{ to: '/', icon: LayoutDashboard, label: '数据仪表', exact: true },
{ to: '/tasks', icon: ListTodo, label: '定时任务', exact: true },
{ to: '/agents', icon: Server, label: '远程执行', exact: true },
{ to: '/editor', icon: FileCode, label: '脚本编辑', exact: false },
{ to: '/history', icon: ScrollText, label: '执行历史', exact: true },
{ to: '/environments', icon: Variable, label: '环境变量', exact: true },