This commit is contained in:
huangjinming 2023-02-17 16:04:08 +08:00
parent fa5729e6bd
commit eb9b29c169
4 changed files with 32 additions and 13 deletions

View File

@ -1 +1,3 @@
website代码 运行代码指令
npm run dev
yarn run dev

View File

@ -25,7 +25,7 @@ const curentid = ref(0);
const navList = reactive([ const navList = reactive([
{ name: "HOME", path: "/home" }, { name: "HOME", path: "/home" },
{ name: "ABOUT", path: "/about" }, { name: "ABOUT", path: "/about" },
{ name: "GALLERY", path: "/news" }, { name: "GALLERY", path: "/gellery" },
{ name: "MARKETPLACE", path: "/marketpalce" }, { name: "MARKETPLACE", path: "/marketpalce" },
{ name: "CONTACT US", path: "/contact" }, { name: "CONTACT US", path: "/contact" },
]); ]);

View File

@ -1,26 +1,43 @@
import { createRouter,createWebHistory } from "vue-router"; import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/HomeView.vue"; import Home from "../views/HomeView.vue";
import About from "../views/AboutView.vue"; import About from "../views/AboutView.vue";
const routes = [ const routes = [
{ {
path: '/', path: "/",
name: 'home', name: "home",
component: Home, component: Home,
}, },
{ {
path: '/about', path: "/about",
name: "about", name: "about",
component: 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({ const router = createRouter({
history: createWebHistory(), history: createWebHistory(),
routes routes,
}) });
export default router; export default router;

View File

@ -152,7 +152,7 @@ a {
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: none;
} }
a:focus { a:focus {
outline: 0; outline: 0;