Merge pull request #13394 from dataease/pr@dev-v2@perf_log_client

perf(X-Pack): 日志区分客户端类型
This commit is contained in:
xuwei-fit2cloud
2024-11-18 17:54:41 +08:00
committed by GitHub
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: '分类名称已存在',

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