v3.8.2 版本前端代码

This commit is contained in:
JEECG
2025-07-30 18:25:58 +08:00
parent e6edde963a
commit 219869f4c0
84 changed files with 3587 additions and 1964 deletions

View File

@ -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});
},

View File

@ -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;