imatrix-ui 2.9.32-dw → 2.9.33-dw
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 +1 -1
- package/src/utils/common-util.js +3 -3
package/package.json
CHANGED
package/src/utils/common-util.js
CHANGED
|
@@ -323,11 +323,11 @@ export function cacheCurrentLanguageUtil(http) {
|
|
|
323
323
|
if (token) {
|
|
324
324
|
const currentLanguage = getLanguage()
|
|
325
325
|
if (currentLanguage) {
|
|
326
|
-
|
|
326
|
+
resolve(currentLanguage)
|
|
327
|
+
} else {
|
|
328
|
+
http.get(Vue.prototype.baseAPI + '/acs/user-languages').then((currentLanguage) => {
|
|
327
329
|
resolve(currentLanguage)
|
|
328
330
|
})
|
|
329
|
-
} else {
|
|
330
|
-
return http.get(Vue.prototype.baseAPI + '/acs/user-languages')
|
|
331
331
|
}
|
|
332
332
|
} else {
|
|
333
333
|
// 默认是中文
|