This commit is contained in:
parent
b97969964f
commit
60221dc3ae
|
|
@ -80,7 +80,7 @@ export const constantRoutes = [
|
|||
path: '/index_1',
|
||||
component: () => import('@/views/publicService/index_1.vue'),
|
||||
name: 'Index_1',
|
||||
meta: { title: '公共服务平台' },
|
||||
meta: { title: '公共服务平台', icon: 'dashboard' },
|
||||
},
|
||||
|
||||
// 公共服务平台最终页
|
||||
|
|
@ -90,26 +90,39 @@ export const constantRoutes = [
|
|||
hidden: true,
|
||||
name: 'PublicService',
|
||||
redirect: 'productCenter',
|
||||
// meta: { title: '公共服务平台', icon: 'dashboard', affix: true },
|
||||
children: [
|
||||
// 产品中心
|
||||
{
|
||||
path: 'productCenter',
|
||||
component: () =>
|
||||
import('@/views/publicService/productCenter/index.vue'),
|
||||
name: 'ProductCenter',
|
||||
},
|
||||
|
||||
// 产品中心 ---- 查看详情页面
|
||||
{
|
||||
path: 'productCenter/detail/:id',
|
||||
component: () =>
|
||||
import(
|
||||
'@/views/publicService/productCenter/product-detail.vue'
|
||||
),
|
||||
name: 'ProductDetail',
|
||||
},
|
||||
// 公共组件
|
||||
{
|
||||
path: 'commonCom',
|
||||
component: () =>
|
||||
import('@/views/publicService/commonCom/index.vue'),
|
||||
name: 'commonCom',
|
||||
},
|
||||
// 宣传物料
|
||||
{
|
||||
path: 'proMaterials',
|
||||
component: () =>
|
||||
import('@/views/publicService/proMaterials/index.vue'),
|
||||
name: 'ProMaterials',
|
||||
},
|
||||
// 文档中心
|
||||
{
|
||||
path: 'docCenter',
|
||||
component: () =>
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ export default {
|
|||
name: 'PublicService_1',
|
||||
mounted() {
|
||||
this.$router.push('/publicService/productCenter')
|
||||
|
||||
// console.log('PublicService_1')
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -191,7 +191,12 @@ export default {
|
|||
},
|
||||
// 在 index.vue 中的 handleDetail 方法
|
||||
handleDetail(service) {
|
||||
console.log('查看详情:', service.title)
|
||||
// console.log('查看详情:', service.title)
|
||||
// this.$router.push({
|
||||
// name: 'ProductDetail',
|
||||
// params: { id: service.id },
|
||||
// })
|
||||
|
||||
this.$router.push({
|
||||
name: 'ProductDetail',
|
||||
params: { id: service.id },
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue