From 94d29fd422a7582f6ab35ae305edeeb4fa3771c1 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 25 六月 2025 17:58:51 +0800
Subject: [PATCH] gx厦门本地请求地址

---
 src/router/index.ts |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 6a5cc9e..e4a8204 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -3,7 +3,9 @@
 import Home from '../views/Home.vue'; // 假设这是你的主页组件
 import deviceWindows from '../views/deviceWindows.vue'
 import deviceWindows2 from '../views/deviceWindoes2.vue'
-// import Search from '../views/Search.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> = [
@@ -13,17 +15,21 @@
     component: deviceWindows2,
   },
   {
-    path: '/deviceWindows/:deviceid',
-    name: 'deviceWindows',
-    component: deviceWindows,
+    path: '/test',
+    name: 'test',
+    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