mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-03 17:15:41 +08:00
v3.8.2 版本前端代码
This commit is contained in:
@ -67,7 +67,9 @@ export const defIndexApi = {
|
||||
async update(url: string, component: string, isRoute: boolean) {
|
||||
let apiUrl = '/sys/sysRoleIndex/updateDefIndex'
|
||||
apiUrl += '?url=' + url
|
||||
apiUrl += '&component=' + component
|
||||
//update-begin-author:liusq---date:2025-07-04--for: 设置默认首页接口传参修改,增加encodeURIComponent,防止{{ window._CONFIG['domianURL'] }}/**保存不上
|
||||
apiUrl += '&component=' + encodeURIComponent(component)
|
||||
//update-end-author:liusq---date:2025-07-04--for: 设置默认首页接口传参修改,增加encodeURIComponent,防止{{ window._CONFIG['domianURL'] }}/**保存不上
|
||||
apiUrl += '&isRoute=' + isRoute
|
||||
return await defHttp.put({url: apiUrl});
|
||||
},
|
||||
|
||||
@ -232,6 +232,15 @@ export const useMultipleTabStore = defineStore({
|
||||
curTab.fullPath = fullPath || curTab.fullPath;
|
||||
this.tabList.splice(updateIndex, 1, curTab);
|
||||
} else {
|
||||
// update-begin--author:liaozhiyang---date:20250709---for:【QQYUN-13058】菜单检测同样的地址(忽略query查询参数)只打开一个
|
||||
// 只比较path,忽略query
|
||||
const findIndex = this.tabList.findIndex((tab) => tab.path === path);
|
||||
const isTabExist = findIndex !== -1;
|
||||
if (isTabExist) {
|
||||
this.tabList.splice(findIndex, 1, route);
|
||||
return;
|
||||
}
|
||||
// update-end--author:liaozhiyang---date:20250709---for:【QQYUN-13058】菜单检测同样的地址(忽略query查询参数)只打开一个
|
||||
// Add tab
|
||||
// 获取动态路由打开数,超过 0 即代表需要控制打开数
|
||||
const dynamicLevel = meta?.dynamicLevel ?? -1;
|
||||
|
||||
Reference in New Issue
Block a user