up
This commit is contained in:
@ -32,43 +32,43 @@ export const constantRoutes = [
|
||||
path: 'home',
|
||||
component: resolve => require(['@/views/home/home'], resolve),
|
||||
name: 'home',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '首页' }
|
||||
},
|
||||
{
|
||||
path: 'notice',
|
||||
component: resolve => require(['@/views/home/notice'], resolve),
|
||||
name: 'notice',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '通知公告' }
|
||||
},
|
||||
{
|
||||
path: 'demand',
|
||||
component: resolve => require(['@/views/home/demand'], resolve),
|
||||
name: 'demand',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '企业需求' }
|
||||
},
|
||||
{
|
||||
path: 'achievements',
|
||||
component: resolve => require(['@/views/home/achievements'], resolve),
|
||||
name: 'achievements',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '科技成果' }
|
||||
},
|
||||
{
|
||||
path: 'declare',
|
||||
component: resolve => require(['@/views/home/declare'], resolve),
|
||||
name: 'declare',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '高企申报' }
|
||||
},
|
||||
{
|
||||
path: 'qualifications',
|
||||
component: resolve => require(['@/views/home/qualifications'], resolve),
|
||||
name: 'qualifications',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '资质申报' }
|
||||
},
|
||||
{
|
||||
path: 'assessment',
|
||||
component: resolve => require(['@/views/home/assessment'], resolve),
|
||||
name: 'assessment',
|
||||
meta: { title: '客户管理' }
|
||||
meta: { title: '智能评估' }
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -76,59 +76,17 @@ export const constantRoutes = [
|
||||
path: '/login',
|
||||
component: resolve => require(['@/views/login'], resolve),
|
||||
name: 'login'
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
component: resolve => require(['@/views/error/404'], resolve),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/401',
|
||||
component: resolve => require(['@/views/error/401'], resolve),
|
||||
hidden: true
|
||||
}
|
||||
// {
|
||||
// path: '/redirect',
|
||||
// // component: Layout,
|
||||
// hidden: true,
|
||||
// children: [
|
||||
// {
|
||||
// path: '/redirect/:path(.*)',
|
||||
// component: resolve => require(['@/views/redirect'], resolve)
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/login',
|
||||
// component: resolve => require(['@/views/login'], resolve),
|
||||
// hidden: true
|
||||
// },
|
||||
// {
|
||||
// path: '/404',
|
||||
// component: resolve => require(['@/views/error/404'], resolve),
|
||||
// hidden: true
|
||||
// },
|
||||
// {
|
||||
// path: '/401',
|
||||
// component: resolve => require(['@/views/error/401'], resolve),
|
||||
// hidden: true
|
||||
// },
|
||||
// {
|
||||
// path: '',
|
||||
// // component: Layout,
|
||||
// redirect: 'index',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'index',
|
||||
// component: resolve => require(['@/views/index1'], resolve),
|
||||
// name: 'index',
|
||||
// meta: { title: '客户管理', noCache: true, affix: true, icon: 'user' }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '',
|
||||
// component: Layout,
|
||||
// redirect: 'index',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'index',
|
||||
// component: resolve => require(['@/views/index'], resolve),
|
||||
// name: '首页',
|
||||
// meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
];
|
||||
export const asyncRouterMap = [
|
||||
// // {
|
||||
|
@ -8,9 +8,9 @@
|
||||
<!-- 头部 -->
|
||||
<div class="header">
|
||||
<div class="login">
|
||||
<el-button type="text" @click="aaa">登录</el-button>
|
||||
<el-button type="text" @click="handlePage">登录</el-button>
|
||||
<i class="mark">|</i>
|
||||
<el-button type="text" @click="aaa">注册</el-button>
|
||||
<el-button type="text" @click="handlePage">注册</el-button>
|
||||
</div>
|
||||
<div class="img2_box">
|
||||
<img src="@/assets/image/02.png" alt="" />
|
||||
@ -29,7 +29,7 @@
|
||||
:class="path == item.path ? 'is-active' : ''"
|
||||
v-for="item in lisList"
|
||||
:key="item.path"
|
||||
@click="abc(item.path)"
|
||||
@click="handlePath(item.path)"
|
||||
>
|
||||
{{ item.name }}
|
||||
<!-- <router-link :to="item.path">
|
||||
@ -86,10 +86,10 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
aaa() {
|
||||
handlePage() {
|
||||
this.$router.push({ path: '/login' });
|
||||
},
|
||||
abc(path) {
|
||||
handlePath(path) {
|
||||
this.path = path;
|
||||
this.$router.push({ path });
|
||||
}
|
||||
|
Reference in New Issue
Block a user