Skip to content

Commit

Permalink
fix:删除TAM_URL的监控,修复中文title问题
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 14376
  • Loading branch information
hyunfa committed Aug 7, 2024
1 parent 21b5875 commit b5a91a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 41 deletions.
20 changes: 1 addition & 19 deletions frontend/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link rel="icon" href="/static/images/favicon.png" type="image/x-icon" />
<link rel="shortcut icon" href="/static/images/favicon.png" type="image/x-icon" />
<meta charset="utf-8">
<title> 蓝鲸节点管理 </title>
<title> 节点管理 | 蓝鲸智云 </title>
<script>
window.PROJECT_CONFIG = (function () {
const SITE_URL = '/'
Expand Down Expand Up @@ -85,24 +85,6 @@
})()
window.$DHCP = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True'
</script>
<script src="http://cdn-go.cn/aegis/aegis-sdk/latest/aegis.min.js?_bid=3977"></script>
<script>
if(window.PROJECT_CONFIG.TAM_ID && window.Aegis) {
const aegis = new Aegis({
id: window.PROJECT_CONFIG.TAM_ID, // 项目ID
uin: window.PROJECT_CONFIG.USERNAME ? window.PROJECT_CONFIG.USERNAME : 'dev_test', // 用户唯一 ID(可选)
reportApiSpeed: true, // 接口测速
reportAssetSpeed: true, // 静态资源测速
pagePerformance: true, // 页面测速
onError: true, // 当前实例是否需要进行错误监听,获取错误日志
delay: 1000, // 上报节流时间,在该时间段内的上报将会合并到一个上报请求中
repeat: 5, // 重复上报次数,对于同一个错误超过多少次不上报
offlineLog: false, // 是否使用离线日志
restfulApiList: [], // 当开启了接口测速,且项目中有些接口采用了 restful 规范,需要在该配置中列出,帮助 Aegis 识别哪些接口是同一条接
spa: true
})
}
</script>
</head>
<body>
<div id="app"></div>
Expand Down
18 changes: 0 additions & 18 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,6 @@
})()
window.$DHCP = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True'
</script>
<script src="{{ TAM_URL }}"></script>
<script>
if(window.PROJECT_CONFIG.TAM_ID !== 'None') {
const aegis = new Aegis({
id: window.PROJECT_CONFIG.TAM_ID, // 项目ID
uin: window.PROJECT_CONFIG.USERNAME ? window.PROJECT_CONFIG.USERNAME : 'dev_test', // 用户唯一 ID(可选)
reportApiSpeed: true, // 接口测速
reportAssetSpeed: true, // 静态资源测速
pagePerformance: true, // 页面测速
onError: true, // 当前实例是否需要进行错误监听,获取错误日志
delay: 1000, // 上报节流时间,在该时间段内的上报将会合并到一个上报请求中
repeat: 5, // 重复上报次数,对于同一个错误超过多少次不上报
offlineLog: false, // 是否使用离线日志
restfulApiList: [], // 当开启了接口测速,且项目中有些接口采用了 restful 规范,需要在该配置中列出,帮助 Aegis 识别哪些接口是同一条接
spa: true
})
}
</script>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/i18n/zh.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-len */
export const dedicated = {
蓝鲸节点管理: '蓝鲸节点管理',
蓝鲸节点管理: '节点管理',
管控区域: '管控区域',
管控区域名称: '管控区域名称',
云服务商: '云服务商',
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/store/modules/platform-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import logoSrc from '@/images/logoIcon.png';
export default class PlatformConfigStore extends VuexModule {
public defaults: IPlatformConfig = {
bkAppCode: '', // appcode
name: '蓝鲸节点管理', // 站点的名称,通常显示在页面左上角,也会出现在网页title中
nameEn: 'BlueKing NodeMan', // 站点的名称-英文
name: '节点管理', // 站点的名称,通常显示在页面左上角,也会出现在网页title中
nameEn: 'NodeMan', // 站点的名称-英文
appLogo: '', // 站点logo
favicon: '/static/images/favicon.png', // 站点favicon
helperText: '',
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class PlatformConfigStore extends VuexModule {
: `${window.PROJECT_CONFIG?.STATIC_URL}nodeman/images/favicon.png`;

const defaults = {
name: '蓝鲸节点管理',
name: '节点管理',
nameEn: 'NodeMan',
appLogo: logoSrc,
brandName: '蓝鲸智云',
Expand Down

0 comments on commit b5a91a8

Please sign in to comment.