From e749e8ba95498357195a6b39837df4cd4aa97aaa Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Tue, 9 Sep 2025 16:53:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 1ceed2a..bb8d9b7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,18 +57,18 @@ export const constantRoutes = [ component: () => import("@/views/error/401"), hidden: true, }, - { - //机械臂路由 - path: "/mechanical_arm/:id", - component: () => - import("@/views/device/register/components/MechanicalArm/index.vue"), - hidden: true, - }, - // router/index.js { path: "/device", component: Layout, children: [ + { + path: "mechanical_arm/:id", + component: () => + import("@/views/device/register/components/MechanicalArm/index.vue"), + name: "机械臂示教", + meta: { title: "机械臂详情" }, + hidden: true, + }, { path: "camera/:id", component: () => @@ -77,12 +77,14 @@ export const constantRoutes = [ meta: { title: "摄像头详情" }, hidden: true, }, - ], - }, - { - path: "/device", - component: Layout, - children: [ + { + path: "speaker/:id", + component: () => + import("@/views/device/register/components/Speaker/index.vue"), + name: "扬声器示教", + meta: { title: "扬声器详情" }, + hidden: true, + }, { path: "hand/:id", 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",