yuang-framework-ui-common 1.0.119 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -256,6 +256,7 @@ import { application } from '../../../lib/config/applicationConfig';
|
|
|
256
256
|
export interface UseSseResult {
|
|
257
257
|
sseClientId: Ref<string>;
|
|
258
258
|
sseMessageList: Ref<Object[]>;
|
|
259
|
+
sseMessage: Ref<Object>;
|
|
259
260
|
isSseConnected: Ref<boolean>;
|
|
260
261
|
connectSse: (options?: FrameworkSseClientOptions) => void;
|
|
261
262
|
disconnectSse: () => void;
|
|
@@ -277,6 +278,7 @@ export function useSse(
|
|
|
277
278
|
// 🔥 核心修复2:初始化时读取模块专属的 sseClientId
|
|
278
279
|
const sseClientId = ref<string>(getLocalStorageItem(getSseClientIdKey(moduleCode)) || '');
|
|
279
280
|
const sseMessageList = ref<Object[]>([]);
|
|
281
|
+
const sseMessage = ref<Object>({});
|
|
280
282
|
const isSseConnected = ref<boolean>(false);
|
|
281
283
|
let sseClient: FrameworkSseClient | null = null;
|
|
282
284
|
|
|
@@ -286,6 +288,7 @@ export function useSse(
|
|
|
286
288
|
// 业务消息才加入列表,避免 clientId 事件混入
|
|
287
289
|
if (event?.type !== 'sseClientId') {
|
|
288
290
|
sseMessageList.value.push(data);
|
|
291
|
+
sseMessage.value = data;
|
|
289
292
|
}
|
|
290
293
|
};
|
|
291
294
|
|
|
@@ -431,6 +434,7 @@ export function useSse(
|
|
|
431
434
|
return {
|
|
432
435
|
sseClientId,
|
|
433
436
|
sseMessageList,
|
|
437
|
+
sseMessage,
|
|
434
438
|
isSseConnected,
|
|
435
439
|
connectSse,
|
|
436
440
|
disconnectSse,
|
|
@@ -7,7 +7,7 @@ import { http } from '../../../lib/config/httpConfig';
|
|
|
7
7
|
*/
|
|
8
8
|
const queryUimsApplicationTreeData = ({ applicationName }) => {
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
10
|
-
const data = { parentIdForEqual: '0', nameForLike: applicationName };
|
|
10
|
+
const data = { parentIdForEqual: '0', nameForLike: applicationName, pageSize: 1000 };
|
|
11
11
|
// prettier-ignore
|
|
12
12
|
http.post(`/uims-api/admin/uims-application/selectPage`, data).then(res=>{
|
|
13
13
|
const listData = [
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import { ElMessage } from 'element-plus/es';
|
|
|
13
13
|
|
|
14
14
|
const sendRequest = () => {
|
|
15
15
|
// 测试
|
|
16
|
-
http.
|
|
16
|
+
http.post("/framework-api/core/framework-captcha/createSliderCaptcha", { }).then((res) => {
|
|
17
17
|
ElMessage.success('发送成功');
|
|
18
18
|
});
|
|
19
19
|
}
|