当前位置:网站首页>Jeecg menu path display problem
Jeecg menu path display problem
2022-07-03 07:17:00 【tonysh_ zds】
1、jeecg Menu path not taken publicPath: ‘/archive/’
modify @route/index.js
export default new Router({
//mode: 'history',
mode: 'history',
**base: process.env.BASE_URL,**
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})
modify @components/menu/index.js
renderMenuItem (menu) {
const target = menu.meta.target || null
const tag = target && 'a' || 'router-link'
let props = { to: { name: menu.name } }
if(menu.route && menu.route === '0'){
props = { to: { path: menu.path } }
}
let baseUrl = process.env.BASE_URL
if(baseUrl.length == baseUrl.lastIndexOf('/')+1){
baseUrl = baseUrl.substr(0,baseUrl.lastIndexOf('/'))
}
const attrs = { href: baseUrl + menu.path, target: menu.meta.target }
...
边栏推荐
- 4everland: the Web3 Developer Center on IPFs has deployed more than 30000 dapps!
- My 2020 summary "don't love the past, indulge in moving forward"
- 4EVERLAND:IPFS 上的 Web3 开发者中心,部署了超过 30,000 个 Dapp!
- 深度学习参数初始化(一)Xavier初始化 含代码
- Unit test notes
- 【已解决】SQLException: Invalid value for getInt() - ‘田鹏‘
- Discussion on some problems of array
- Specified interval inversion in the linked list
- Final, override, polymorphism, abstraction, interface
- Win 10 find the port and close the port
猜你喜欢

691. 立方体IV
![[solved] unknown error 1146](/img/f1/b8dd3ca8359ac9eb19e1911bd3790a.png)
[solved] unknown error 1146

SecureCRT取消Session记录的密码

Flask Foundation

Sorting out the core ideas of the pyramid principle

【已解决】SQLException: Invalid value for getInt() - ‘田鹏‘
![[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet](/img/9d/42dfef67246740f0dba0c6d8f1b625.jpg)
[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet
![[set theory] partition (partition | partition example | partition and equivalence relationship)](/img/f0/c3c82de52d563f3b81d731ba74e3a2.jpg)
[set theory] partition (partition | partition example | partition and equivalence relationship)

Le Seigneur des anneaux: l'anneau du pouvoir

4279. 笛卡尔树
随机推荐
Distributed transactions
Notes on the core knowledge of Domain Driven Design DDD
C code production YUV420 planar format file
Laravel frame step pit (I)
TypeScript let与var的区别
Upgrade CentOS php7.2.24 to php7.3
[solved] sqlexception: invalid value for getint() - 'Tian Peng‘
Tool class static method calls @autowired injected service
多个全局异常处理类,怎么规定执行顺序
Sorting out the core ideas of the pyramid principle
Inno Setup 制作安装包
The difference between typescript let and VaR
Unit test notes
4EVERLAND:IPFS 上的 Web3 开发者中心,部署了超过 30,000 个 Dapp!
Selenium key knowledge explanation
萬卷書 - 價值投資者指南 [The Education of a Value Investor]
My 2020 summary "don't love the past, indulge in moving forward"
Visit Google homepage to display this page, which cannot be displayed
SecureCRT取消Session记录的密码
II. D3.js draw a simple figure -- circle