修改路由

This commit is contained in:
yulixing 2019-10-11 16:26:54 +08:00
parent 821658348e
commit e449f5aca8
3 changed files with 7 additions and 6 deletions

View File

@ -5,8 +5,8 @@ source /etc/profile
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log
echo 'copy node_modules to /data/publish/node_packages' >> boundle.log echo 'copy node_modules to /data/publish/node_packages' >> boundle.log
npm run build:prod # npm run build:prod
# npm run build:stage npm run build:stage
cd ./dist/ && tar -zcvf pop-sys.tar.gz ./ cd ./dist/ && tar -zcvf pop-sys.tar.gz ./
cd .. cd ..

View File

@ -42,7 +42,7 @@ import errRouter from './error'
export const constantRoutes = [ export const constantRoutes = [
{ {
path: '/', path: '/',
redirect: '/ad/ad-list', redirect: '/ad/list',
}, },
{ {
path: '/login', path: '/login',

View File

@ -2,17 +2,18 @@
import Layout from '@/layout' import Layout from '@/layout'
const comRouter = { const userRouter = {
path: '/user', path: '/user',
component: Layout, component: Layout,
meta: { title: '个人中心', icon: 'user', affix: true },
children: [ children: [
{ {
path: '', path: '',
component: () => import('@/views/user/index'), component: () => import('@/views/user/index'),
name: 'user', name: 'user',
meta: { title: '个人中心', icon: 'user', affix: true } meta: { title: '个人信息'}
} }
] ]
} }
export default comRouter export default userRouter