diff --git a/code/frontend/src/components/user/HeaderBar2.vue b/code/frontend/src/components/user/HeaderBar2.vue index e6c44b0..158f250 100644 --- a/code/frontend/src/components/user/HeaderBar2.vue +++ b/code/frontend/src/components/user/HeaderBar2.vue @@ -45,7 +45,7 @@ export default { return { items: [ { icon: 'nav-tab-item_icon iconfont icon-home', label: '首页', path: '/home'}, - { icon: 'nav-tab-item_icon iconfont icon-send-fill', label: '虚拟体验', path: '/effect'}, + { icon: 'nav-tab-item_icon iconfont icon-send-fill', label: '虚拟体验', path: '/experience'}, { icon: 'nav-tab-item_icon iconfont icon-shujuxianshi', label: '线下活动', path: '/big-screen'}, { icon: 'nav-tab-item_icon iconfont icon-zhinengtuijian', label: '论坛', path: '/recommend'}, /*{ icon: 'nav-tab-item_icon iconfont icon-project_info', label: '背景介绍', path: '/background'}, diff --git a/code/frontend/src/components/user/Pagination.vue b/code/frontend/src/components/user/Pagination.vue index 812f1a3..f1cf684 100644 --- a/code/frontend/src/components/user/Pagination.vue +++ b/code/frontend/src/components/user/Pagination.vue @@ -1,12 +1,13 @@ /** * 分页组件 -*/ +*/ diff --git a/code/frontend/src/router/index.js b/code/frontend/src/router/index.js index 4d28303..4b75c02 100644 --- a/code/frontend/src/router/index.js +++ b/code/frontend/src/router/index.js @@ -9,6 +9,7 @@ import HomePage from "@/views/user/HomePage"; import UserRegister from "@/views/user/UserRegister"; import UserLogin from "@/views/user/UserLogin"; import UserIndex from "../views/index" +import VirtualExperience from "@/views/user/VirtualExperience"; // 启用路由 Vue.use(Router); @@ -53,6 +54,14 @@ const router = new Router({ requireAuth: false } }, + { + path: "/experience", + name: "虚拟体验", + component: VirtualExperience, + meta: { + requireAuth: false + } + }, { path: "/personal", name: "用户个人中心", diff --git a/code/frontend/src/views/user/HomePage.vue b/code/frontend/src/views/user/HomePage.vue index 40a091e..becf826 100644 --- a/code/frontend/src/views/user/HomePage.vue +++ b/code/frontend/src/views/user/HomePage.vue @@ -6,9 +6,9 @@ - + - + @@ -66,12 +66,14 @@ + +