@dobot-plus/template 1.2.14 → 1.2.16

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.
@@ -24,7 +24,7 @@ instance.interceptors.response.use(
24
24
 
25
25
  export function request(config: AxiosRequestConfig, port?: number) {
26
26
  const { portData, pluginPort } = store.getState().toolReducer
27
-
27
+ console.log('pluginPort', pluginPort, portData, port, pluginPort)
28
28
  const options: AxiosRequestConfig = {
29
29
  ...config,
30
30
  withCredentials: true,
@@ -42,8 +42,9 @@ export function request(config: AxiosRequestConfig, port?: number) {
42
42
  }
43
43
 
44
44
  export function getPluginPort() {
45
+ const { portData } = store.getState().toolReducer
45
46
  return instance.request({
46
- baseURL: process.env.NODE_ENV !== 'production' ? `` : `http://${dptConfig.ip}:22001`,
47
+ baseURL: process.env.NODE_ENV !== 'production' ? `` : `http://${portData.ip || dptConfig.ip}:22001`,
47
48
  url: '/dobotPlus/getPorts',
48
49
  method: 'get'
49
50
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dobot-plus/template",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "engines": {
5
5
  "node": "20"
6
6
  },
@@ -54,5 +54,8 @@
54
54
  "esbuild-loader": "2.21.0",
55
55
  "webpack-cli": "^5.1.4"
56
56
  },
57
- "peerDependencies": {}
57
+ "peerDependencies": {
58
+ "react": "^18.3.1",
59
+ "react-dom": "^18.3.1"
60
+ }
58
61
  }