inl-ui 0.1.170 → 0.1.171

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.
@@ -88,20 +88,20 @@ const getUserinfo = () => {
88
88
  }
89
89
  };
90
90
  const getCommonHeaders = () => {
91
- getUserinfo();
92
- getUserId();
91
+ const userInfo = getUserinfo();
92
+ const userId = getUserId();
93
93
  const token = getToken();
94
94
  const appId = getAppId();
95
- getCorpId();
95
+ const corpId = getCorpId();
96
96
  const Authorization = `Bearer ${token}`;
97
97
  return {
98
- // userName: userInfo?.userName,
99
- // userId: userInfo?.userId || userId,
100
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
101
- // employeeId: userInfo?.employeeId,
98
+ userName: userInfo?.userName,
99
+ userId: userInfo?.userId || userId,
100
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
101
+ employeeId: userInfo?.employeeId,
102
102
  token,
103
103
  appId,
104
- // corpId,
104
+ corpId,
105
105
  Authorization,
106
106
  "Content-Type": "application/json;charset=utf-8"
107
107
  };
@@ -9028,6 +9028,7 @@ const VideoPlayerV2 = vue.defineComponent({
9028
9028
  if ("stopPlay" in play) {
9029
9029
  play.stopPlay(`videoPlayer_${uuid}`);
9030
9030
  }
9031
+ release();
9031
9032
  };
9032
9033
  const init = () => {
9033
9034
  let camera = videoInfo2.value;
@@ -59,20 +59,20 @@ const getUserinfo = () => {
59
59
  }
60
60
  };
61
61
  const getCommonHeaders = () => {
62
- getUserinfo();
63
- getUserId();
62
+ const userInfo = getUserinfo();
63
+ const userId = getUserId();
64
64
  const token = getToken();
65
65
  const appId = getAppId();
66
- getCorpId();
66
+ const corpId = getCorpId();
67
67
  const Authorization = `Bearer ${token}`;
68
68
  return {
69
- // userName: userInfo?.userName,
70
- // userId: userInfo?.userId || userId,
71
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
72
- // employeeId: userInfo?.employeeId,
69
+ userName: userInfo?.userName,
70
+ userId: userInfo?.userId || userId,
71
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
72
+ employeeId: userInfo?.employeeId,
73
73
  token,
74
74
  appId,
75
- // corpId,
75
+ corpId,
76
76
  Authorization,
77
77
  "Content-Type": "application/json;charset=utf-8"
78
78
  };
@@ -8999,6 +8999,7 @@ const VideoPlayerV2 = defineComponent({
8999
8999
  if ("stopPlay" in play) {
9000
9000
  play.stopPlay(`videoPlayer_${uuid}`);
9001
9001
  }
9002
+ release();
9002
9003
  };
9003
9004
  const init = () => {
9004
9005
  let camera = videoInfo2.value;
package/dist/index.cjs CHANGED
@@ -227,20 +227,20 @@ const getUserinfo = () => {
227
227
  }
228
228
  };
229
229
  const getCommonHeaders = () => {
230
- getUserinfo();
231
- getUserId();
230
+ const userInfo = getUserinfo();
231
+ const userId = getUserId();
232
232
  const token = getToken();
233
233
  const appId = getAppId();
234
- getCorpId();
234
+ const corpId = getCorpId();
235
235
  const Authorization = `Bearer ${token}`;
236
236
  return {
237
- // userName: userInfo?.userName,
238
- // userId: userInfo?.userId || userId,
239
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
240
- // employeeId: userInfo?.employeeId,
237
+ userName: userInfo?.userName,
238
+ userId: userInfo?.userId || userId,
239
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
240
+ employeeId: userInfo?.employeeId,
241
241
  token,
242
242
  appId,
243
- // corpId,
243
+ corpId,
244
244
  Authorization,
245
245
  "Content-Type": "application/json;charset=utf-8"
246
246
  };
@@ -10014,6 +10014,7 @@ const VideoPlayerV2 = vue.defineComponent({
10014
10014
  if ("stopPlay" in play) {
10015
10015
  play.stopPlay(`videoPlayer_${uuid}`);
10016
10016
  }
10017
+ release();
10017
10018
  };
10018
10019
  const init = () => {
10019
10020
  let camera = videoInfo2.value;
package/dist/index.d.ts CHANGED
@@ -78,8 +78,13 @@ interface IApiInstanceConfig extends AxiosRequestConfig {
78
78
  * keepProperty: boolean; 保留多余的属性,如createUser
79
79
  */
80
80
  declare const getCommonHeaders: () => {
81
+ userName: any;
82
+ userId: any;
83
+ employeeName: string;
84
+ employeeId: any;
81
85
  token: string;
82
86
  appId: any;
87
+ corpId: any;
83
88
  Authorization: string;
84
89
  "Content-Type": string;
85
90
  };
package/dist/index.js CHANGED
@@ -196,20 +196,20 @@ const getUserinfo = () => {
196
196
  }
197
197
  };
198
198
  const getCommonHeaders = () => {
199
- getUserinfo();
200
- getUserId();
199
+ const userInfo = getUserinfo();
200
+ const userId = getUserId();
201
201
  const token = getToken();
202
202
  const appId = getAppId();
203
- getCorpId();
203
+ const corpId = getCorpId();
204
204
  const Authorization = `Bearer ${token}`;
205
205
  return {
206
- // userName: userInfo?.userName,
207
- // userId: userInfo?.userId || userId,
208
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
209
- // employeeId: userInfo?.employeeId,
206
+ userName: userInfo?.userName,
207
+ userId: userInfo?.userId || userId,
208
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
209
+ employeeId: userInfo?.employeeId,
210
210
  token,
211
211
  appId,
212
- // corpId,
212
+ corpId,
213
213
  Authorization,
214
214
  "Content-Type": "application/json;charset=utf-8"
215
215
  };
@@ -9983,6 +9983,7 @@ const VideoPlayerV2 = defineComponent({
9983
9983
  if ("stopPlay" in play) {
9984
9984
  play.stopPlay(`videoPlayer_${uuid}`);
9985
9985
  }
9986
+ release();
9986
9987
  };
9987
9988
  const init = () => {
9988
9989
  let camera = videoInfo2.value;
@@ -213,20 +213,20 @@ const getUserinfo = () => {
213
213
  }
214
214
  };
215
215
  const getCommonHeaders = () => {
216
- getUserinfo();
217
- getUserId();
216
+ const userInfo = getUserinfo();
217
+ const userId = getUserId();
218
218
  const token = getToken();
219
219
  const appId = getAppId();
220
- getCorpId();
220
+ const corpId = getCorpId();
221
221
  const Authorization = `Bearer ${token}`;
222
222
  return {
223
- // userName: userInfo?.userName,
224
- // userId: userInfo?.userId || userId,
225
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
226
- // employeeId: userInfo?.employeeId,
223
+ userName: userInfo?.userName,
224
+ userId: userInfo?.userId || userId,
225
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
226
+ employeeId: userInfo?.employeeId,
227
227
  token,
228
228
  appId,
229
- // corpId,
229
+ corpId,
230
230
  Authorization,
231
231
  "Content-Type": "application/json;charset=utf-8"
232
232
  };
@@ -69,8 +69,13 @@ interface IApiInstanceConfig extends AxiosRequestConfig {
69
69
  * keepProperty: boolean; 保留多余的属性,如createUser
70
70
  */
71
71
  declare const getCommonHeaders: () => {
72
+ userName: any;
73
+ userId: any;
74
+ employeeName: string;
75
+ employeeId: any;
72
76
  token: string;
73
77
  appId: any;
78
+ corpId: any;
74
79
  Authorization: string;
75
80
  "Content-Type": string;
76
81
  };
@@ -185,20 +185,20 @@ const getUserinfo = () => {
185
185
  }
186
186
  };
187
187
  const getCommonHeaders = () => {
188
- getUserinfo();
189
- getUserId();
188
+ const userInfo = getUserinfo();
189
+ const userId = getUserId();
190
190
  const token = getToken();
191
191
  const appId = getAppId();
192
- getCorpId();
192
+ const corpId = getCorpId();
193
193
  const Authorization = `Bearer ${token}`;
194
194
  return {
195
- // userName: userInfo?.userName,
196
- // userId: userInfo?.userId || userId,
197
- // employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
198
- // employeeId: userInfo?.employeeId,
195
+ userName: userInfo?.userName,
196
+ userId: userInfo?.userId || userId,
197
+ employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
198
+ employeeId: userInfo?.employeeId,
199
199
  token,
200
200
  appId,
201
- // corpId,
201
+ corpId,
202
202
  Authorization,
203
203
  "Content-Type": "application/json;charset=utf-8"
204
204
  };
@@ -5982,6 +5982,7 @@ const VideoPlayerV2 = vue.defineComponent({
5982
5982
  if ("stopPlay" in play) {
5983
5983
  play.stopPlay(`videoPlayer_${uuid}`);
5984
5984
  }
5985
+ release();
5985
5986
  };
5986
5987
  const init = () => {
5987
5988
  let camera = videoInfo2.value;
@@ -5954,6 +5954,7 @@ const VideoPlayerV2 = defineComponent({
5954
5954
  if ("stopPlay" in play) {
5955
5955
  play.stopPlay(`videoPlayer_${uuid}`);
5956
5956
  }
5957
+ release();
5957
5958
  };
5958
5959
  const init = () => {
5959
5960
  let camera = videoInfo2.value;
@@ -5957,6 +5957,7 @@ const VideoPlayerV2 = vue.defineComponent({
5957
5957
  if ("stopPlay" in play) {
5958
5958
  play.stopPlay(`videoPlayer_${uuid}`);
5959
5959
  }
5960
+ release();
5960
5961
  };
5961
5962
  const init = () => {
5962
5963
  let camera = videoInfo2.value;
@@ -5949,6 +5949,7 @@ const VideoPlayerV2 = defineComponent({
5949
5949
  if ("stopPlay" in play) {
5950
5950
  play.stopPlay(`videoPlayer_${uuid}`);
5951
5951
  }
5952
+ release();
5952
5953
  };
5953
5954
  const init = () => {
5954
5955
  let camera = videoInfo2.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.170",
3
+ "version": "0.1.171",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",