From eb9b29c169b04acb40ea07c616e6018d5d2f87d6 Mon Sep 17 00:00:00 2001 From: huangjinming Date: Fri, 17 Feb 2023 16:04:08 +0800 Subject: [PATCH] newcebg --- README.md | 4 +++- src/components/NavBar.vue | 2 +- src/router/index.js | 37 +++++++++++++++++++++++++++---------- src/style/rest.css | 2 +- 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d331506..191b484 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -website代码 \ No newline at end of file +运行代码指令 +npm run dev +yarn run dev \ No newline at end of file diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 08047c2..d824978 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -25,7 +25,7 @@ const curentid = ref(0); const navList = reactive([ { name: "HOME", path: "/home" }, { name: "ABOUT", path: "/about" }, - { name: "GALLERY", path: "/news" }, + { name: "GALLERY", path: "/gellery" }, { name: "MARKETPLACE", path: "/marketpalce" }, { name: "CONTACT US", path: "/contact" }, ]); diff --git a/src/router/index.js b/src/router/index.js index fbd1119..8a65f58 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,26 +1,43 @@ -import { createRouter,createWebHistory } from "vue-router"; +import { createRouter, createWebHistory } from "vue-router"; import Home from "../views/HomeView.vue"; import About from "../views/AboutView.vue"; - const routes = [ { - path: '/', - name: 'home', + path: "/", + name: "home", component: Home, }, { - path: '/about', + path: "/about", name: "about", component: About, }, - - -] + { + path: "/gellery", + name: "gellery", + component: () => + import(/* webpackChunkName "gellery" */ "././../views/GalleryView.vue"), + }, + { + path: "/marketpalce", + name: "marketpalce", + component: () => + import( + /* webpackChunkName "marketpalce" */ "././../views/MarketplaceView.vue" + ), + }, + { + path: "/contact", + name: "contact", + component: () => + import(/* webpackChunkName "contact" */ "././../views/ContactUsView.vue"), + }, +]; const router = createRouter({ history: createWebHistory(), - routes -}) + routes, +}); export default router; diff --git a/src/style/rest.css b/src/style/rest.css index dfa66e5..08c5ce2 100644 --- a/src/style/rest.css +++ b/src/style/rest.css @@ -152,7 +152,7 @@ a { text-decoration: none; } a:hover { - text-decoration: underline; + text-decoration: none; } a:focus { outline: 0;