From 80edeb00ec5f9647b568a48503e63f485505aca8 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 20 六月 2025 10:00:16 +0800
Subject: [PATCH] gx语音播报

---
 src/router/index.ts |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index e4a5179..e4a8204 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -4,6 +4,8 @@
 import deviceWindows from '../views/deviceWindows.vue'
 import deviceWindows2 from '../views/deviceWindoes2.vue'
 import test from '../views/test.vue'; // 搜索结果页,接收查询参数
+import registerForNutrition from '../views/register/index.vue'
+import registerSuu from '../views/registerSuu/index.vue'
 
 // 定义路由规则,并为每个路由指定类型安全的 props
 const routes: Array<RouteRecordRaw> = [
@@ -18,12 +20,16 @@
     component: test,
     props: true, // 路径参数将作为 props 传递给组件
   },
-//   {
-//     path: '/search',
-//     name: 'Search',
-//     component: Search,
-//     props: (route) => ({ query: route.query.q as string }), // 将查询参数 q 作为 prop 传递给组件
-//   }
+  {
+    path: '/registerForNutrition',
+    name: 'registerForNutrition',
+    component: registerForNutrition
+  },
+  {
+    path: '/register-success',
+    name: 'registerSuu',
+    component: registerSuu
+  }
 ];
 
 // 创建路由器实例,并指定类型

--
Gitblit v1.8.0