bi-element-ui 1.6.3-beta.16 → 1.6.3-beta.17

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bi-element-ui",
3
- "version": "1.6.3-beta.16",
3
+ "version": "1.6.3-beta.17",
4
4
  "private": false,
5
5
  "description": "基于 bi-eleme 编写的企业级 Vue 2 UI 组件库",
6
6
  "main": "lib/bi-element-ui-externals.common.js",
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var accessReport_1 = require("../utils/request/defaultRequest");
3
+ var defaultRequest_1 = require("../utils/request/defaultRequest");
4
+ var index_js_1 = require("../config/index.js");
4
5
  var AccessReport = /** @class */ (function () {
5
6
  function AccessReport(_a) {
6
7
  var _b = _a.system, system = _b === void 0 ? '' : _b, _c = _a.authorization, authorization = _c === void 0 ? '' : _c, _d = _a.env, env = _d === void 0 ? 'production' : _d;
@@ -9,12 +10,7 @@ var AccessReport = /** @class */ (function () {
9
10
  this.baseUrl = 'https://zq.wozhangwan.com/api';
10
11
  this.systemName = system;
11
12
  this.authorization = authorization;
12
- if (env === 'development') {
13
- this.baseUrl = '/zhangquan-dev';
14
- }
15
- if (env === 'staging') {
16
- this.baseUrl = 'https://zq.zwwlkj03.top/api';
17
- }
13
+ this.baseUrl = (0, index_js_1.getServiceURL)('', env);
18
14
  }
19
15
  AccessReport.prototype.report = function (router, page) {
20
16
  var params = {
@@ -27,7 +23,7 @@ var AccessReport = /** @class */ (function () {
27
23
  };
28
24
  AccessReport.prototype.loginReport = function () { };
29
25
  AccessReport.prototype.accessReportSavev = function (data) {
30
- return (0, accessReport_1.default)({
26
+ return (0, defaultRequest_1.default)({
31
27
  url: this.baseUrl + '/api/access_log/record',
32
28
  method: 'post',
33
29
  headers: {