当前位置:网站首页>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 }
...
边栏推荐
- JMeter test result output
- 4279. 笛卡尔树
- [day15] introduce the features, advantages and disadvantages of promise, and how to implement it internally. Implement promise by hand
- Dora (discover offer request recognition) process of obtaining IP address
- dataworks自定义函数开发环境搭建
- Flask Foundation
- [set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
- On the practice of performance optimization and stability guarantee
- LeetCode
- 【无标题】
猜你喜欢

C代码生产YUV420 planar格式文件

SecureCRT取消Session记录的密码

JUC forkjoinpool branch merge framework - work theft
![[vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)](/img/7f/3d6b6ea5319f7165e07baf0a78d318.jpg)
[vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)

New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears

【已解决】Unknown error 1146
![[solved] unknown error 1146](/img/f1/b8dd3ca8359ac9eb19e1911bd3790a.png)
[solved] unknown error 1146

Recursion, Fibonacci sequence

4279. Cartesian tree

Common APIs
随机推荐
【已解决】SQLException: Invalid value for getInt() - ‘田鹏‘
Inno setup production and installation package
Practical plug-ins in idea
Operation and maintenance technical support personnel have hardware maintenance experience in Hong Kong
【已解决】win10找不到本地组策略编辑器解决方法
PHP install composer
[set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
高并发内存池
php artisan
Wireshark software usage
691. 立方体IV
Pat grade a real problem 1166
Chrome 98 Private Network Access problem w/ disabled web security: Request had no target IP address
Interfaces and related concepts
3311. Longest arithmetic
Book recommendation~
Resthighlevelclient gets the mapping of an index
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
LeetCode
20220319