coolcare-lite-scada-component 3.0.2 → 3.0.4

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.
@@ -84,7 +84,7 @@ requestClient.use(/*#__PURE__*/function () {
84
84
  case 0:
85
85
  req = ctx.req;
86
86
  url = req.url;
87
- ctx.req.url = "".concat(window.location.origin, ".nip.io").concat(url);
87
+ ctx.req.url = "".concat(window.location.origin).concat(url);
88
88
  _context.next = 5;
89
89
  return next();
90
90
  case 5:
package/es/utils/auth.js CHANGED
@@ -45,12 +45,12 @@ export function parseAccessToken(token) {
45
45
  export function storeToken(accessToken, xAccessToken) {
46
46
  // 将 access-token 保存到 cookie
47
47
  Cookies.set(accessTokenCookieName, accessToken || '', {
48
- domain: '192.168.6.21.nip.io'
48
+ domain: window.location.origin
49
49
  });
50
50
 
51
51
  // 将 x-access-token 保存到 cookie
52
52
  Cookies.set(xAccessTokenCookieName, xAccessToken || '', {
53
- domain: '192.168.6.21.nip.io'
53
+ domain: window.location.origin
54
54
  });
55
55
  }
56
56
  export function storeAccessToken(token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "scripts": {
5
5
  "start": " umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",
@@ -13,7 +13,7 @@
13
13
  "test": "umi-test",
14
14
  "test:coverage": "umi-test --coverage",
15
15
  "analyze": "ANALYZE=1 umi build",
16
- "deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/ruijin:master-2025-4-14 . && docker push xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/ruijin:master-2025-4-14"
16
+ "deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/ruijin:master-2025-4-14-2 . && docker push xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/ruijin:master-2025-4-14-2"
17
17
  },
18
18
  "main": "./es/componentIndex.js",
19
19
  "module": "./es/componentIndex.js",