当前位置:网站首页>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 }
...
边栏推荐
- PHP install the spool extension
- How to plan well?
- Pat grade a real problem 1166
- New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
- Resttemplate configuration use
- Inno Setup 制作安装包
- 【已解决】win10找不到本地组策略编辑器解决方法
- [set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
- File operation serialization recursive copy
- Split small interface
猜你喜欢

dataworks自定义函数开发环境搭建

7.2刷题两个

PAT甲级真题1166
![Gridome + strapi + vercel + PM2 deployment case of [static site (3)]](/img/65/8d79998e96a2c74ba6e237bee652c6.jpg)
Gridome + strapi + vercel + PM2 deployment case of [static site (3)]

TCP cumulative acknowledgement and window value update

JUC forkjoinpool branch merge framework - work theft

SecureCRT password to cancel session recording

docker建立mysql:5.7版本指定路径挂载不上。

JMeter test result output

3311. Longest arithmetic
随机推荐
Arctic code vault contributor
Advanced API (multithreading)
Distributed ID
多个全局异常处理类,怎么规定执行顺序
Use the jvisualvm tool ----- tocmat to start JMX monitoring
[solved] win10 cannot find a solution to the local group policy editor
《指环王:力量之戒》新剧照 力量之戒铸造者亮相
Store WordPress media content on 4everland to complete decentralized storage
Advanced API (character stream & net for beginners)
Split small interface
Final, override, polymorphism, abstraction, interface
How can I split a string at the first occurrence of “-” (minus sign) into two $vars with PHP?
C code production YUV420 planar format file
JUC forkjoinpool branch merge framework - work theft
centos php7.2.24升级到php7.3
MySQL syntax (basic)
php artisan
20220319
"Moss ma not found" solution
Basic components and intermediate components