+
index
@@ -28,6 +28,7 @@ export default {
console.log(11);
this.$api.shzl.part_person_all().then(res=>{
console.log(res);
+
})
},
@@ -35,7 +36,9 @@ export default {
},
methods: {
-
+ gotopage(){
+ this.$router.push('/home')
+ }
},
};
diff --git a/src/router/index.js b/src/router/index.js
index d22b32bef122b60574c23fe5957efa7e12b1df2a..1415535f6d5e9937152f3d6f4c8476dcf8bb9627 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -8,6 +8,11 @@ const routes = [
name: 'index', // 路由名称
component: () => import("@/pages/index.vue"), //映射组件
},
+ {
+ path: '/home', //path 链接路径
+ name: 'home', // 路由名称
+ component: () => import("@/pages/home.vue"), //映射组件
+ },
]
const router = createRouter({