张延森 3 년 전
부모
커밋
0c21dfb58c
3개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  1. 3
    3
      config/prod.js
  2. 1
    0
      jsconfig.json
  3. 6
    6
      src/pages/index/buildingAround/index.jsx

+ 3
- 3
config/prod.js 파일 보기

@@ -4,13 +4,13 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.89.147:8081"', //正式
7
-    WSS_HOST: '"wss://www.newhousehold.cn"',
7
+    // WSS_HOST: '"wss://www.newhousehold.cn"',
8 8
     HOST: '"https://xlk.njyz.tech"',
9
-    // WSS_HOST: '"wss://xlk.njyz.tech"',
9
+    WSS_HOST: '"wss://xlk.njyz.tech"',
10 10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11 11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12 12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
13
-    Version: '"V0.0.81-20211117"'
13
+    Version: '"V0.0.81-20211118"'
14 14
   },
15 15
   mini: {},
16 16
   h5: {

+ 1
- 0
jsconfig.json 파일 보기

@@ -2,6 +2,7 @@
2 2
 
3 3
 {
4 4
   "compilerOptions": {
5
+    "jsx": "react",
5 6
     "experimentalDecorators": true,
6 7
     "baseUrl": ".",
7 8
     "paths": {      

+ 6
- 6
src/pages/index/buildingAround/index.jsx 파일 보기

@@ -102,27 +102,27 @@ export default withLayout((props) => {
102 102
           pois.map((item) => {
103 103
             let target = []
104 104
             if(item.key === 'Transport') {
105
-              target = (res.buildingTransport || '').split(',').map((subItem) => {
105
+              target = (res.buildingTransport || '').split(',').filter(Boolean).map((subItem) => {
106 106
                 return { name: subItem }
107 107
               })
108 108
             } else if(item.key === 'Mall') {
109
-              target = (res.buildingMall || '').split(',').map((subItem) => {
109
+              target = (res.buildingMall || '').split(',').filter(Boolean).map((subItem) => {
110 110
                 return { name: subItem }
111 111
               })
112 112
             } else if(item.key === 'Edu') {
113
-              target = (res.buildingEdu || '').split(',').map((subItem) => {
113
+              target = (res.buildingEdu || '').split(',').filter(Boolean).map((subItem) => {
114 114
                 return { name: subItem }
115 115
               })
116 116
             } else if(item.key === 'Hospital') {
117
-              target = (res.buildingHospital || '').split(',').map((subItem) => {
117
+              target = (res.buildingHospital || '').split(',').filter(Boolean).map((subItem) => {
118 118
                 return { name: subItem }
119 119
               })
120 120
             } else if(item.key === 'Bank') {
121
-              target = (res.buildingBank || '').split(',').map((subItem) => {
121
+              target = (res.buildingBank || '').split(',').filter(Boolean).map((subItem) => {
122 122
                 return { name: subItem }
123 123
               })
124 124
             } else if(item.key === 'Restaurant') {
125
-              target = (res.buildingRestaurant || '').split(',').map((subItem) => {
125
+              target = (res.buildingRestaurant || '').split(',').filter(Boolean).map((subItem) => {
126 126
                 return { name: subItem }
127 127
               })
128 128
             }