💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ import Vue from 'vue' import Router from 'vue-router' import Home from './views/Home.vue' Vue.use(Router) export default new Router({ mode: 'history', base: process.env.BASE_URL, //路由要跳转的页面都放在routes中 routes: [ { path: '/', name: 'home', //App.vue <router-view>中要显示的内容 component: Home }, { path: '/about', name: 'about', component: () => import( './views/About.vue') } ] }) ~~~