befly-admin 4.8.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/plugins/report.js +13 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-admin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"gitHead": "282f7accca9c8d55956a5490c0365cce4a1ad90d",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly Admin - 基于 Vue3 + TDesign Vue Next 的后台管理系统",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"preview": "bunx --bun befly-vite preview"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"befly-admin-ui": "^1.
|
|
32
|
-
"befly-shared": "^2.
|
|
33
|
-
"befly-vite": "^1.
|
|
31
|
+
"befly-admin-ui": "^1.21.0",
|
|
32
|
+
"befly-shared": "^2.11.0",
|
|
33
|
+
"befly-vite": "^1.18.0",
|
|
34
34
|
"pinia": "^3.0.4",
|
|
35
35
|
"tdesign-icons-vue-next": "^0.4.4",
|
|
36
36
|
"tdesign-vue-next": "^1.20.0",
|
package/src/plugins/report.js
CHANGED
|
@@ -74,11 +74,11 @@ function getCurrentRouteInfo() {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
function reportOnline(route) {
|
|
77
|
-
return $Http
|
|
77
|
+
return $Http("/core/tongJi/onlineReport", getRouteReportData(route));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
function reportInfo(route) {
|
|
81
|
-
return $Http
|
|
81
|
+
return $Http("/core/tongJi/infoReport", getRouteReportData(route));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
function triggerActiveOnlineReport(force = false) {
|
|
@@ -219,22 +219,17 @@ export function reportClientError(errorType, message, detail) {
|
|
|
219
219
|
const routeInfo = getCurrentRouteInfo();
|
|
220
220
|
isReportingError = true;
|
|
221
221
|
|
|
222
|
-
void $Http
|
|
223
|
-
.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
message: safeMessage,
|
|
234
|
-
detail: safeDetail
|
|
235
|
-
},
|
|
236
|
-
[""]
|
|
237
|
-
)
|
|
222
|
+
void $Http("/core/tongJi/errorReport", {
|
|
223
|
+
pagePath: routeInfo.pagePath,
|
|
224
|
+
pageName: routeInfo.pageName,
|
|
225
|
+
source: "admin",
|
|
226
|
+
productName: $Config.productName,
|
|
227
|
+
productCode: $Config.productCode,
|
|
228
|
+
productVersion: $Config.productVersion,
|
|
229
|
+
errorType: String(errorType || "unknown"),
|
|
230
|
+
message: safeMessage,
|
|
231
|
+
detail: safeDetail
|
|
232
|
+
})
|
|
238
233
|
.catch(() => {
|
|
239
234
|
// 静默失败:避免错误上报再次制造错误
|
|
240
235
|
})
|