2 Star 1 Fork 1

tbCold/03-03-task4-nuxtjs-realworld

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.js 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
zzddttjjmm 提交于 2020-10-16 16:34 . modify
/*
* @Descripttion:
* @version:
* @Author: jie.niu
* @Date: 2020-08-18 14:45:11
* @LastEditors: jie.niu
* @LastEditTime: 2020-08-18 15:39:47
*/
module.exports = {
router: {
base: '/t03-03-task4-nuxtjs-realworld',
linkActiveClass: 'active',
extendRoutes (routes, resolve) {
routes.splice(0)
routes.push( ...[
{
path: '/',
component: resolve(__dirname, 'pages/layout'),
children: [
{
path: '',
name: 'home',
component: resolve(__dirname, 'pages/home/')
},
{
path: '/login',
name: 'login',
component: resolve(__dirname, 'pages/login/')
},
{
path: '/register',
name: 'register',
component: resolve(__dirname, 'pages/login/')
},
{
path: '/profile/:username',
name: 'profile',
component: resolve(__dirname, 'pages/profile/')
},
{
path: '/profile/:username/favourites',
name: 'favprofile',
component: resolve(__dirname, 'pages/profile/')
},
{
path: '/settings',
name: 'settings',
component: resolve(__dirname, 'pages/settings/')
},
{
path: '/editor',
name: 'editor',
component: resolve(__dirname, 'pages/editor/')
},
{
path: '/editor/:slug',
name: 'editEditor',
component: resolve(__dirname, 'pages/editor/')
},
{
path: '/article/:slug',
name: 'article',
component: resolve(__dirname, 'pages/article/')
},
]
}
] )
}
},
plugins: [
'~/plugins/request.js',
'~/plugins/dayjs.js'
],
server: {
host: '0.0.0.0',
port: 3000
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tbCold/t03-03-task4-nuxtjs-realworld.git
git@gitee.com:tbCold/t03-03-task4-nuxtjs-realworld.git
tbCold
t03-03-task4-nuxtjs-realworld
03-03-task4-nuxtjs-realworld
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385