当前位置:网站首页>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 }
...
边栏推荐
- IP home online query platform
- 2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
- 4279. 笛卡尔树
- [Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet
- SecureCRT取消Session记录的密码
- TCP cumulative acknowledgement and window value update
- Advanced API (local simulation download file)
- "Moss ma not found" solution
- [cmake] cmake link SQLite Library
- Hash table, generic
猜你喜欢

C代码生产YUV420 planar格式文件

Docker builds MySQL: the specified path of version 5.7 cannot be mounted.

Interfaces and related concepts

JMeter JSON extractor extracts two parameters at the same time
![[solved] unknown error 1146](/img/f1/b8dd3ca8359ac9eb19e1911bd3790a.png)
[solved] unknown error 1146

Basic components and intermediate components

在 4EVERLAND 上存储 WordPress 媒体内容,完成去中心化存储

Summary of abnormal mechanism of interview
![[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones](/img/d0/850e095a43610366d6144b2471f3f7.jpg)
[Fiddler actual operation] how to use Fiddler to capture packets on Apple Mobile Phones

Sorting out the core ideas of the pyramid principle
随机推荐
[set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
“百度杯”CTF比赛 2017 二月场,Web:爆破-1
Distributed transactions
Operation and maintenance technical support personnel have hardware maintenance experience in Hong Kong
2021-07-18
Strategy mode
Visit Google homepage to display this page, which cannot be displayed
Centos切换安装mysql5.7和mysql8.0
Win 2008 R2 crashed at the final installation stage
691. Cube IV
Common APIs
4EVERLAND:IPFS 上的 Web3 开发者中心,部署了超过 30,000 个 Dapp!
Laravel Web Framework
3311. 最长算术
4279. 笛卡尔树
[solved] sqlexception: invalid value for getint() - 'Tian Peng‘
mysql误删root账户导致无法登录
【最详细】最新最全Redis面试大全(50道)
7.2 brush two questions
crontab定时任务