imatrix-ui 2.7.58 → 2.7.59

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": "imatrix-ui",
3
- "version": "2.7.58",
3
+ "version": "2.7.59",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -221,7 +221,7 @@ const cn = {
221
221
  uploadSucceeded: '上传成功',
222
222
  theNumberOfUploadsExceedsTheLimitTheLimitIs: '上传数量超过限制,限制数量为'
223
223
  },
224
- message: {
224
+ messageVideo: {
225
225
  attemptingToIdentify: '正在尝试识别....',
226
226
  callingRearCamera: '正在调用后置摄像头...',
227
227
  identificationFailed: '识别失败'
@@ -217,7 +217,7 @@ const en = {
217
217
  uploadSucceeded: 'Upload succeeded',
218
218
  theNumberOfUploadsExceedsTheLimitTheLimitIs: 'The number of uploads exceeds the limit. The limit is'
219
219
  },
220
- message: {
220
+ messageVideo: {
221
221
  attemptingToIdentify: 'Attempting to identify',
222
222
  callingRearCamera: 'Calling rear camera',
223
223
  identificationFailed: 'Identification failed'
@@ -175,3 +175,17 @@ export function isPlateSys(systemCode) {
175
175
  return false
176
176
  }
177
177
  }
178
+
179
+ export function getServerConfigUtil(http) {
180
+ return new Promise((resolve, reject) => {
181
+ http.get('./server-config.json').then(result => {
182
+ const config = result
183
+ for (const key in config) {
184
+ Vue.prototype[key] = config[key]
185
+ }
186
+ Vue.prototype.baseURL = getRelativeBaseUrl(Vue.prototype.baseURL)
187
+ Vue.prototype.baseAPI = getRelativeBaseUrl(Vue.prototype.baseAPI)
188
+ resolve()
189
+ })
190
+ })
191
+ }