若依(ruoyi)管理系统,自定义按钮跳转页面

原文链接:https://blog.csdn.net/ahwangzc/article/details/122505807
// route.js中新增

// 公共路由
export const constantRoutes = [
{
path: '/businessProcess',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [
{
path: 'marineSpecialAddOrUpdate',
component: () => import('@/views/businessProcess/marineSpecial/marineSpecialAddOrUpdate'),
name: 'marineSpecialAddOrUpdate',
meta: { title: '海运专线新增/修改', icon: 'user' }
}
]
}
]



// 组件中新增跳转路由
<router-link to="/businessProcess/marineSpecialAddOrUpdate">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
>新增</el-button>
</router-link>



//亦可点击按钮跳转
function goAddOrUpdate(row) {
router.push({
path: '/businessProcess/marineSpecialAddOrUpdate',
query: {
// id: row.id
}
})
}

posted @   枫树湾河桥  阅读(4758)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
Live2D
欢迎阅读『若依(ruoyi)管理系统,自定义按钮跳转页面』
西雅图
17:15发布
西雅图
17:15发布
6°
东北风
2级
空气质量
相对湿度
86%
今天
多云
3°/15°
周四
4°/16°
周五
4°/14°
点击右上角即可分享
微信分享提示