perf(X-Pack): 日志区分客户端类型

This commit is contained in:
fit2cloud-chenyw 2024-11-18 17:48:04 +08:00
parent 42b2537a2e
commit 7b4a6dadb9
4 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import { useEmbedded } from '@/store/modules/embedded'
import { useLinkStoreWithOut } from '@/store/modules/link'
import { config } from './config'
import { configHandler } from './refresh'
import { isMobile } from '@/utils/utils'
type AxiosErrorWidthLoading<T> = T & {
config: {
@ -108,6 +109,9 @@ service.interceptors.request.use(
config.baseURL = PATH_URL
}
if (isMobile()) {
;(config.headers as AxiosRequestHeaders)['X-DE-MOBILE'] = true
}
if (linkStore.getLinkToken) {
;(config.headers as AxiosRequestHeaders)['X-DE-LINK-TOKEN'] = linkStore.getLinkToken
} else if (embeddedStore.token) {

View File

@ -83,7 +83,9 @@ export default {
confirm_export: '确定导出日志吗',
export_success: '导出成功',
excel_file_name: 'DataEase操作日志',
relevant_content_found: '没有找到相关内容'
relevant_content_found: '没有找到相关内容',
mobile: '移动端',
client: '客户端'
},
template_manage: {
name_already_exists_type: '分类名称已存在',

@ -1 +1 @@
Subproject commit 9d120aec82118de0493e3c22dc2acc200f74f05a
Subproject commit b7b7a604fa8a35ca9e48e6fcbdde2aea9f88c390

View File

@ -20,4 +20,6 @@ public class LogGridRequest extends KeywordRequest implements Serializable {
private List<Long> time;
private Boolean timeDesc = true;
private List<String> client;
}