mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-30 10:40:17 +00:00
Squashed commit of the following:
commit f30a8c658a90020ec020fc702c680b2ee8562b70
Author: JEECG <445654970@qq.com>
Date: Thu Jul 31 11:35:16 2025 +0800
数据库缺少openapi微服务网关配置
commit e84d7726d2bbe60bacf759375c15aa74888a816c
Author: JEECG <445654970@qq.com>
Date: Thu Jul 31 10:20:09 2025 +0800
后台接口地址修改
commit 0f398026982aefe55a0113be688fa1339a8161ac
Author: JEECG <445654970@qq.com>
Date: Thu Jul 31 09:56:24 2025 +0800
docker自动化部署命令
commit a014a3ed0e81900e879bcce7bae7afcf68e15227
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 21:55:16 2025 +0800
v3.8.2 优化一键docker启动前后端
commit 5720d1a01ecdf003cbc7a29aedba4ca1bd88a96c
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 19:26:38 2025 +0800
升级版本号到3.8.2
commit 5eed6ac6d2145a50f6e0ea650fc3a3c2de1aee0a
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 18:49:29 2025 +0800
升级版本号到3.8.2
commit 0cfa1e223ae0907d0d25849484390dcfadd717c9
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 18:28:10 2025 +0800
v3.8.2 系统通知改造支持分类
commit 219869f4c01b848d31ab1a1d41f9613ae8762f5b
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 18:25:58 2025 +0800
v3.8.2 版本前端代码
commit e6edde963a4c65762d3ffd0b6f3257e138e54964
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 18:25:46 2025 +0800
v3.8.2 版本后端代码
commit c44b66128e5e89636be67a484875eef393824504
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 18:23:09 2025 +0800
XXL-JOB(2.4.0 及以上)已被移除,分片参数获取方式变更。
commit 9356b0474191a8ee038b9653c4051db25fb20922
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 10:57:52 2025 +0800
升级online到3.8.2-beta
commit d0a094f9a311e6d58b873681d483849ed848fa0b
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 10:57:31 2025 +0800
升级mybatis-plus到3.5.12、升级jsqlparser到4.9
commit 73eb62573798907d775f499994764469bbbc4f45
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 09:51:34 2025 +0800
升级jimureport到v2.1.1
commit 74880705b8f0baf0478277604f15ae61e1b1a842
Author: JEECG <445654970@qq.com>
Date: Wed Jul 30 09:18:46 2025 +0800
升级online到3.8.2-beta
# Conflicts:
# jeecg-boot/jeecg-boot-base-core/pom.xml
# jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger3Config.java
# jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java
# jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-sentinel/pom.xml
# jeecg-boot/pom.xml
78 lines
2.0 KiB
Vue
78 lines
2.0 KiB
Vue
import {store} from '/@/store';
|
||
import {defineStore} from 'pinia';
|
||
import {defHttp} from "@/utils/http/axios";
|
||
|
||
interface DefIndexState {
|
||
// 首页url
|
||
url: string,
|
||
// 首页组件
|
||
component: string
|
||
}
|
||
|
||
export const useDefIndexStore = defineStore({
|
||
id: 'defIndex',
|
||
state: (): DefIndexState => ({
|
||
url: '',
|
||
component: '',
|
||
}),
|
||
getters: {},
|
||
actions: {
|
||
/**
|
||
* 查询默认主页配置
|
||
*/
|
||
async query() {
|
||
const config = await defIndexApi.query();
|
||
this.url = config.url;
|
||
this.component = config.component;
|
||
},
|
||
/**
|
||
* 更新默认主页配置
|
||
* @param url 首页url
|
||
* @param component 首页组件
|
||
* @param isRoute 是否是路由
|
||
*/
|
||
async update(url: string, component: string, isRoute: boolean) {
|
||
await defIndexApi.update(url, component, isRoute);
|
||
await this.query()
|
||
},
|
||
|
||
check(url: string) {
|
||
return url === this.url;
|
||
}
|
||
}
|
||
});
|
||
|
||
// Need to be used outside the setup
|
||
export function useDefIndexStoreWithOut() {
|
||
return useDefIndexStore(store);
|
||
}
|
||
|
||
/**
|
||
* 默认首页配置API
|
||
*/
|
||
export const defIndexApi = {
|
||
/**
|
||
* 查询默认首页配置
|
||
*/
|
||
async query() {
|
||
const url = '/sys/sysRoleIndex/queryDefIndex'
|
||
return await defHttp.get({url});
|
||
},
|
||
/**
|
||
* 更新默认首页配置
|
||
* @param url 首页url
|
||
* @param component 首页组件
|
||
* @param isRoute 是否是路由
|
||
*/
|
||
async update(url: string, component: string, isRoute: boolean) {
|
||
let apiUrl = '/sys/sysRoleIndex/updateDefIndex'
|
||
apiUrl += '?url=' + url
|
||
//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});
|
||
},
|
||
|
||
}
|