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/lib/super-ui.css +1 -1
- package/lib/super-ui.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/i18n/langs/cn.js +1 -1
- package/src/i18n/langs/en.js +1 -1
- package/src/utils/common-util.js +14 -0
package/package.json
CHANGED
package/src/i18n/langs/cn.js
CHANGED
|
@@ -221,7 +221,7 @@ const cn = {
|
|
|
221
221
|
uploadSucceeded: '上传成功',
|
|
222
222
|
theNumberOfUploadsExceedsTheLimitTheLimitIs: '上传数量超过限制,限制数量为'
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
messageVideo: {
|
|
225
225
|
attemptingToIdentify: '正在尝试识别....',
|
|
226
226
|
callingRearCamera: '正在调用后置摄像头...',
|
|
227
227
|
identificationFailed: '识别失败'
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -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
|
-
|
|
220
|
+
messageVideo: {
|
|
221
221
|
attemptingToIdentify: 'Attempting to identify',
|
|
222
222
|
callingRearCamera: 'Calling rear camera',
|
|
223
223
|
identificationFailed: 'Identification failed'
|
package/src/utils/common-util.js
CHANGED
|
@@ -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
|
+
}
|