Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
b2141a33
提交
b2141a33
编写于
8月 02, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/setRUM' into 'release'
feat: 腾讯前端性能监控RUM See merge request
!16
上级
99f9c94d
e5689511
变更
4
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14692 行增加
和
16 行删除
+14692
-16
.env.production
.env.production
+2
-4
.env.testing
.env.testing
+3
-0
index.html
public/index.html
+49
-12
yarn.lock
yarn.lock
+14638
-0
未找到文件。
.env.production
浏览文件 @
b2141a33
...
...
@@ -26,13 +26,11 @@ VUE_APP_CHANNEL=prod
# OSS 上传 Bucket_Name
VUE_APP_BUCKET_NAME='pica-app-prod'
#arms日志监控脚本
VUE_APP_ARMS=''
# native 本地存储
VUE_APP_CACHE_CONTROL=1
VUE_APP_WEB_URL=https://phome.yunqueyi.com/lreport_ssr
#
arms日志监控脚本
VUE_APP_
ARMS=!(function(c,b,d,a){c[a]||(c[a]={});c[a].config={pid:"bj53rb58f5@3579bc50e0d05db",appType:"web",imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",sendResource:true,enableLinkTrace:true,behavior:true,enableSPA:true,useFmp:true};with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
#
腾讯前端性能监控RUM
VUE_APP_
RUM=true
.env.testing
浏览文件 @
b2141a33
...
...
@@ -32,3 +32,6 @@ VUE_APP_BUCKET_NAME='pica-app-test'
VUE_APP_CACHE_CONTROL=1
VUE_APP_WEB_URL=https://test1-phome.yunqueyi.com/lreport_ssr
#腾讯前端性能监控RUM
VUE_APP_RUM=
public/index.html
浏览文件 @
b2141a33
<!DOCTYPE html>
<html
lang=
""
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, viewport-fit=cover"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover"
>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, viewport-fit=cover"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover"
/>
<!-- 打开和关闭DNS预读取 -->
<meta
http-equiv=
"x-dns-prefetch-control"
content=
"on"
>
<meta
http-equiv=
"x-dns-prefetch-control"
content=
"on"
/
>
<!-- 强制查询特定主机名 -->
<link
rel=
"dns-prefetch"
href=
"<%= process.env.VUE_APP_SERVICE_URL %>"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"<%= VUE_APP_OSS_URL %>static/img/logo.png"
>
<link
rel=
"dns-prefetch"
href=
"<%= process.env.VUE_APP_SERVICE_URL %>"
/>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"<%= VUE_APP_OSS_URL %>static/img/logo.png"
/>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
</head>
<body>
<script>
<%=
process
.
env
.
VUE_APP_ARMS
%>
</script>
<noscript>
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
<strong
>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work
properly without JavaScript enabled. Please enable it to
continue.
</strong
>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
...
...
@@ -30,6 +38,35 @@
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/crypto.min-4.0.0.js"
></script>
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"
></script>
<script
src=
"<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"
></script>
</body>
<
%
if
(
process
.
env
.
VUE_APP_RUM
)
{
%
>
<script
src=
"https://tam.cdn-go.cn/aegis-sdk/latest/aegis.min.js"
></script>
<script>
if
(
typeof
Aegis
===
"function"
)
{
var
aegis
=
new
Aegis
({
id
:
"9GJVzuL61G1RZbVbYX"
,
// 上报 id
reportApiSpeed
:
true
,
// 接口测速
reportAssetSpeed
:
true
,
// 静态资源测速
spa
:
true
,
// spa 应用页面跳转的时候开启 pv 计算
hostUrl
:
"https://rumt-zh.com"
,
api
:
{
retCodeHandler
(
data
,
url
,
xhr
)
{
// data 是string类型,如果需要对象需要手动parse下
// url 为请求url
// xhr 响应,可以通过xhr.response拿到完整的后台响应
try
{
data
=
JSON
.
parse
(
data
);
}
catch
(
e
)
{}
return
{
// isErr 如果是 true 的话,会上报一条 retcode 异常的日志。
isErr
:
data
.
code
!==
"000000"
,
code
:
data
.
code
,
};
},
},
});
}
</script>
<
%
}
%
>
</body>
</html>
yarn.lock
0 → 100644
浏览文件 @
b2141a33
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录