修改路由
This commit is contained in:
parent
821658348e
commit
e449f5aca8
@ -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 ..
|
||||||
|
@ -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',
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user