diff --git a/package.json b/package.json index c295c04d..e382e811 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensabre-admin", "description": "Opensabre开发管理平台", - "version": "4.0.0", + "version": "1.1.3", "private": true, "packageManager": "pnpm@10.26.2", "type": "module", diff --git a/src/utils/request.ts b/src/utils/request.ts index e3e23a95..e4d53ed2 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -13,7 +13,10 @@ import { normalizeDateTimeValues } from "@/utils/format"; const http = axios.create({ baseURL: import.meta.env.VITE_APP_BASE_API, timeout: 50000, - headers: { "Content-Type": "application/json;charset=utf-8" }, + headers: { + Accept: "application/json", + "Content-Type": "application/json;charset=utf-8", + }, paramsSerializer: (params) => qs.stringify(params), }); diff --git a/src/views/security/online-user/index.vue b/src/views/security/online-user/index.vue index 5f222971..d14d9430 100644 --- a/src/views/security/online-user/index.vue +++ b/src/views/security/online-user/index.vue @@ -25,17 +25,33 @@ highlight-current-row border class="table-section__content" + row-key="sessionId" + empty-text="暂无在线用户" > + + + - - - - -