修改:文章列表url去掉/public
This commit is contained in:
parent
2d07c77a3e
commit
41156d7974
@ -8,7 +8,7 @@ import getPageTitle from '@/utils/get-page-title'
|
||||
|
||||
NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
||||
|
||||
const whiteList = ['/login','/public/articles','/s','/s_m','/public/articles/article','/share'] // no redirect whitelist
|
||||
const whiteList = ['/login','/articles','/s','/s_m','/articles/article','/share'] // no redirect whitelist
|
||||
|
||||
router.beforeEach(async(to, from, next) => {
|
||||
// start progress bar
|
||||
|
||||
@ -193,7 +193,7 @@ export const constantRoutes = [
|
||||
},
|
||||
|
||||
{
|
||||
path: '/public/articles/article',
|
||||
path: '/articles/article',
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
@ -205,7 +205,7 @@ export const constantRoutes = [
|
||||
},
|
||||
|
||||
{
|
||||
path: '/public/articles',
|
||||
path: '/articles',
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user