diff --git a/src/App.vue b/src/App.vue index 6dbaef1..ca451b1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,21 @@ @@ -24,6 +28,6 @@ font-family: 'MyCustomFont',sans-serif!important; font-style: normal; -webkit-font-smoothing: antialiased; - } - /*每个页面公共css */ + } + /*每个页面公共css */ \ No newline at end of file diff --git a/src/SinglePage.vue b/src/SinglePage.vue new file mode 100644 index 0000000..ef27ad0 --- /dev/null +++ b/src/SinglePage.vue @@ -0,0 +1,59 @@ + + + + + \ No newline at end of file diff --git a/src/components/NavContainer.vue b/src/components/NavContainer.vue index a1adc5d..87987cc 100644 --- a/src/components/NavContainer.vue +++ b/src/components/NavContainer.vue @@ -126,7 +126,7 @@ }, { name: "recruitment", - type: '/joblist' + type: '/job/joblist' }, { name: "problem", diff --git a/src/index.ts b/src/index.ts index c4ba624..a2b119f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import en from './en.json'; import zh from './zh.json'; -import th from './th.json'; +// import th from './th.json'; export interface Messages { [key: string]: any; } @@ -8,7 +8,7 @@ export interface Messages { const messages: Messages = { en, zh, - th + // th }; export default messages; diff --git a/src/router/index.ts b/src/router/index.ts index 32fd853..7615c92 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,7 +1,7 @@ //创建路由器,并暴露出去 // 第一步 引入createRouter -import {createRouter,createWebHistory} from "vue-router"; +import { createRouter, createWebHistory } from "vue-router"; //引入可能呈现的组件 import NavContainer from '@/components/NavContainer.vue'; import Preson from '@/components/Preson.vue'; @@ -9,44 +9,47 @@ import Home from '@/components/Home.vue'; import Service from '@/components/Service.vue'; import Contact from '@/components/Contact.vue'; import Problem from '@/components/Problem.vue'; +import SinglePage from "@/SinglePage.vue"; +import Content from "@/components/Content.vue"; import JobList from "@/pages/H5/Join/JobList.vue"; import JobDetail from "@/pages/H5/Join/JobDetail.vue"; // 第二步 创建路由器 const router = createRouter({ - history:createWebHistory(), - routes:[ + history: createWebHistory(), + routes: [ { - path:'/', - component:Home + path: '/', + component: Content, + children: [ + { + path: '/', + component: Home + }, + ] }, { - path:'/NavContainer', - component:NavContainer + path: '/job', + component: SinglePage, + children: [ + { + path: '/job/joblist', + component: JobList, + meta: { + h5: true + } + }, { + path: '/jobdetail', + component: JobDetail, + meta: { + h5: true + } + }, + ] }, - { - path:'/Preson', - component:Preson - }, - { - path:'/Service', - component:Service - }, - { - path:'/Contact', - component:Contact - }, - { - path:'/Problem', - component:Problem - }, { - path:'/joblist', - component: JobList - },{ - path:'/jobdetail', - component: JobDetail - }, - + + ] }) + export default router \ No newline at end of file