befly-admin 4.7.0 → 4.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-admin",
3
- "version": "4.7.0",
3
+ "version": "4.8.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.17.0",
32
- "befly-shared": "^2.7.0",
33
- "befly-vite": "^1.14.0",
31
+ "befly-admin-ui": "^1.18.0",
32
+ "befly-shared": "^2.8.0",
33
+ "befly-vite": "^1.15.0",
34
34
  "pinia": "^3.0.4",
35
35
  "tdesign-icons-vue-next": "^0.4.4",
36
36
  "tdesign-vue-next": "^1.20.0",
@@ -74,11 +74,11 @@ function getCurrentRouteInfo() {
74
74
  }
75
75
 
76
76
  function reportOnline(route) {
77
- return $Http("/core/tongJi/onlineReport", getRouteReportData(route), [""]);
77
+ return $Http.post("/core/tongJi/onlineReport", getRouteReportData(route), [""]);
78
78
  }
79
79
 
80
80
  function reportInfo(route) {
81
- return $Http("/core/tongJi/infoReport", getRouteReportData(route), [""]);
81
+ return $Http.post("/core/tongJi/infoReport", getRouteReportData(route), [""]);
82
82
  }
83
83
 
84
84
  function triggerActiveOnlineReport(force = false) {
@@ -219,21 +219,22 @@ export function reportClientError(errorType, message, detail) {
219
219
  const routeInfo = getCurrentRouteInfo();
220
220
  isReportingError = true;
221
221
 
222
- void $Http(
223
- "/core/tongJi/errorReport",
224
- {
225
- pagePath: routeInfo.pagePath,
226
- pageName: routeInfo.pageName,
227
- source: "admin",
228
- productName: $Config.productName,
229
- productCode: $Config.productCode,
230
- productVersion: $Config.productVersion,
231
- errorType: String(errorType || "unknown"),
232
- message: safeMessage,
233
- detail: safeDetail
234
- },
235
- [""]
236
- )
222
+ void $Http
223
+ .post(
224
+ "/core/tongJi/errorReport",
225
+ {
226
+ pagePath: routeInfo.pagePath,
227
+ pageName: routeInfo.pageName,
228
+ source: "admin",
229
+ productName: $Config.productName,
230
+ productCode: $Config.productCode,
231
+ productVersion: $Config.productVersion,
232
+ errorType: String(errorType || "unknown"),
233
+ message: safeMessage,
234
+ detail: safeDetail
235
+ },
236
+ [""]
237
+ )
237
238
  .catch(() => {
238
239
  // 静默失败:避免错误上报再次制造错误
239
240
  })