bl-common-vue3 3.8.45 → 3.8.47
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
package/src/common/utils/util.js
CHANGED
|
@@ -69,7 +69,7 @@ const utils = {
|
|
|
69
69
|
*/
|
|
70
70
|
setCommonLocal: (key, value,isUpdate=false) => {
|
|
71
71
|
if (key == 'basicConfig') {
|
|
72
|
-
utils.areaUnit = value
|
|
72
|
+
utils.areaUnit = (value && value.system_area_unit) ? value.system_area_unit : '㎡';
|
|
73
73
|
}
|
|
74
74
|
if (key == 'basicConfigI18n') {
|
|
75
75
|
utils.basicConfigI18n = value;
|
|
@@ -333,7 +333,7 @@ export default defineComponent({
|
|
|
333
333
|
loadLanguageAsync(utils.getLang());
|
|
334
334
|
|
|
335
335
|
window.addEventListener("setBLLang", (event) => {
|
|
336
|
-
baseConfig.language =
|
|
336
|
+
baseConfig.language = event.newValue;
|
|
337
337
|
refreshKey.value++;
|
|
338
338
|
const newLang = event.newValue; // 获取新的语言值
|
|
339
339
|
loadLanguageAsync(newLang);
|