代码拉取完成,页面将自动刷新
/*
* @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
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。