feat: 更改路由

This commit is contained in:
zhanghao 2025-09-09 16:53:41 +08:00
parent 36e5102375
commit e749e8ba95

View File

@ -57,18 +57,18 @@ export const constantRoutes = [
component: () => import("@/views/error/401"), component: () => import("@/views/error/401"),
hidden: true, hidden: true,
}, },
{
//机械臂路由
path: "/mechanical_arm/:id",
component: () =>
import("@/views/device/register/components/MechanicalArm/index.vue"),
hidden: true,
},
// router/index.js
{ {
path: "/device", path: "/device",
component: Layout, component: Layout,
children: [ children: [
{
path: "mechanical_arm/:id",
component: () =>
import("@/views/device/register/components/MechanicalArm/index.vue"),
name: "机械臂示教",
meta: { title: "机械臂详情" },
hidden: true,
},
{ {
path: "camera/:id", path: "camera/:id",
component: () => component: () =>
@ -77,12 +77,14 @@ export const constantRoutes = [
meta: { title: "摄像头详情" }, meta: { title: "摄像头详情" },
hidden: true, hidden: true,
}, },
], {
}, path: "speaker/:id",
{ component: () =>
path: "/device", import("@/views/device/register/components/Speaker/index.vue"),
component: Layout, name: "扬声器示教",
children: [ meta: { title: "扬声器详情" },
hidden: true,
},
{ {
path: "hand/:id", path: "hand/:id",
component: () => component: () =>
@ -93,14 +95,6 @@ export const constantRoutes = [
}, },
], ],
}, },
{
path: "/speaker/:id",
component: () =>
import("@/views/device/register/components/Speaker/index.vue"),
name: "扬声器示教",
meta: { title: "扬声器详情" },
hidden: true,
},
{ {
//语音合成 //语音合成
path: "/speech_synthesis", path: "/speech_synthesis",