zjs_project 10 mesiacov pred
rodič
commit
b5eaec1c91

+ 1 - 1
src/pages/webgl_rxdz_recognizer_houseList/webgl_rxdz_recognizer_houseList.vue

@@ -318,7 +318,7 @@
             },
             //字符串中的 "平" 字符替换为 "㎡"
             convertPingToSquareMeter(text) {  
-                return text.replace(/(\d+)(平)/g, '$1㎡'); // 使用正则表达式替换  
+                return text.replace(/(\d+)(平|m2)/g, '$1㎡'); // 使用正则表达式替换  
             },
             extractNumber(text) {  
                 const parts = text.split('第')[1]; // 分割并获取数字部分