From 8f9ea7c18d6894b9c3d329ce566fa9e399e8873b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 五月 2025 21:38:45 +0800
Subject: [PATCH] 更新显示自适应
---
src/router/index.ts | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index 6a5cc9e..e4a5179 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -3,7 +3,7 @@
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'; // 搜索结果页,接收查询参数
// 定义路由规则,并为每个路由指定类型安全的 props
const routes: Array<RouteRecordRaw> = [
@@ -13,9 +13,9 @@
component: deviceWindows2,
},
{
- path: '/deviceWindows/:deviceid',
- name: 'deviceWindows',
- component: deviceWindows,
+ path: '/test',
+ name: 'test',
+ component: test,
props: true, // 路径参数将作为 props 传递给组件
},
// {
--
Gitblit v1.8.0