对接数据
This commit is contained in:
116
router.js
116
router.js
@ -4,34 +4,100 @@ import VueRouter from 'vue-router'
|
||||
// 引入页面组件
|
||||
import Home from '@/pages/Home/index.vue'
|
||||
import AboutIndex from '@/pages/About/index.vue'
|
||||
import User from '@/pages/User/index.vue'
|
||||
import Login from '@/pages/Login/index.vue'
|
||||
// import Login from '@/pages/Login/index.vue'
|
||||
import Privacy from '@/pages/About/Privacy.vue'
|
||||
import About from '@/pages/About/About.vue'
|
||||
import Service from '@/pages/About/Service.vue'
|
||||
import AIHub from '@/pages/AIHub/index.vue'
|
||||
import AITools from '@/pages/AIHub/AITools.vue'
|
||||
import Frameworks from '@/pages/AIHub/Frameworks.vue'
|
||||
import ViewMore from "@/pages/Home/views/ViewMore.vue";
|
||||
import List from "@/pages/Home/views/List.vue";
|
||||
import Detail from "@/pages/ToolDetail/index.vue";
|
||||
import Launches from "@/pages/Launches/index.vue";
|
||||
import DailyNews from "@/pages/DailyNews/index.vue";
|
||||
import AIToolsDetail from "@/pages/AIHub/AIToolsDetail.vue";
|
||||
import Learn from "@/pages/Learn/index.vue";
|
||||
import Observer from "@/pages/Learn/Observer.vue";
|
||||
import Depth from "@/pages/Learn/Depth.vue";
|
||||
import Pioneer from "@/pages/Learn/Pioneer.vue";
|
||||
// import NewsDetail from "@/pages/DailyNews/NewsDetailIndex/index.vue";
|
||||
import LaunchesDetail from "@/pages/Launches/Detail/index.vue";
|
||||
import FinanceDetail from "@/pages/Launches/FinanceDetail/index.vue";
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
export const routes = [{
|
||||
export const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home-redirect',
|
||||
redirect: '/home'
|
||||
},{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: Home,
|
||||
redirect: '/home/list',
|
||||
meta: {
|
||||
navigationName: "Home",
|
||||
hidden: false
|
||||
} //navigationName:显示在header组件里面导航按钮的名字 hidden:是否在导航栏里面显示
|
||||
hidden: false,
|
||||
}, //navigationName:显示在header组件里面导航按钮的名字 hidden:是否在导航栏里面显示
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
name: 'list',
|
||||
component: List,
|
||||
meta: {
|
||||
navigationName: 'List',
|
||||
hidden: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'more',
|
||||
name: 'more',
|
||||
component: ViewMore,
|
||||
meta: {
|
||||
navigationName: 'View More',
|
||||
hidden: true,
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/detail',
|
||||
name: 'Tool Detail',
|
||||
component: Detail,
|
||||
meta: {
|
||||
navigationName: "Tool ToolDetail",
|
||||
hidden: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/launches',
|
||||
name: 'AI Launches',
|
||||
component: About,
|
||||
component: Launches,
|
||||
meta: {
|
||||
navigationName: "AI Launches",
|
||||
hidden: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/launches/detail',
|
||||
name: 'AI Launches Detail',
|
||||
component: LaunchesDetail,
|
||||
meta: {
|
||||
navigationName: "AI Launches Detail",
|
||||
hidden: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/finance-detail',
|
||||
name: 'Finance',
|
||||
component: FinanceDetail,
|
||||
meta: {
|
||||
navigationName: "Finance",
|
||||
hidden: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/hub',
|
||||
name: 'AI Hub',
|
||||
@ -58,22 +124,40 @@ export const routes = [{
|
||||
icon: 'frameworks',
|
||||
hidden: true
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'AI Daily News',
|
||||
component: Login,
|
||||
path: '/tools-detail',
|
||||
name: 'Tool Detail',
|
||||
component: AIToolsDetail,
|
||||
meta: {
|
||||
navigationName: "AI Daily News",
|
||||
hidden: false
|
||||
icon: 'tools',
|
||||
hidden: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/dailyNews',
|
||||
name: 'AI Daily News',
|
||||
component: DailyNews,
|
||||
meta: {
|
||||
navigationName: "AI Daily News",
|
||||
hidden: false
|
||||
},
|
||||
},
|
||||
// {
|
||||
// path: '/news-detail',
|
||||
// name: 'News Detail',
|
||||
// component: NewsDetail,
|
||||
// meta: {
|
||||
// navigationName: 'News ToolDetail',
|
||||
// hidden: true
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: '/learn',
|
||||
name: 'Learn',
|
||||
component: Login,
|
||||
component: Learn,
|
||||
meta: {
|
||||
navigationName: "Learn",
|
||||
hidden: false,
|
||||
@ -82,7 +166,7 @@ export const routes = [{
|
||||
children: [{
|
||||
name: 'AI Observer',
|
||||
path: '/observer',
|
||||
component: Privacy,
|
||||
component: Observer,
|
||||
meta: {
|
||||
icon: 'observer',
|
||||
hidden: true
|
||||
@ -91,7 +175,7 @@ export const routes = [{
|
||||
{
|
||||
name: 'In-depth Analysis',
|
||||
path: '/analysis',
|
||||
component: About,
|
||||
component: Depth,
|
||||
meta: {
|
||||
icon: 'analysis',
|
||||
hidden: true
|
||||
@ -100,7 +184,7 @@ export const routes = [{
|
||||
{
|
||||
name: 'Pioneer In The Field',
|
||||
path: '/pioneer',
|
||||
component: Service,
|
||||
component: Pioneer,
|
||||
meta: {
|
||||
icon: 'pioneer',
|
||||
hidden: true
|
||||
|
||||
Reference in New Issue
Block a user