张延森 3 yıl önce
ebeveyn
işleme
0c21dfb58c
3 değiştirilmiş dosya ile 10 ekleme ve 9 silme
  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 Dosyayı Görüntüle

4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://192.168.89.147:8081"', //正式
6
     // HOST: '"http://192.168.89.147:8081"', //正式
7
-    WSS_HOST: '"wss://www.newhousehold.cn"',
7
+    // WSS_HOST: '"wss://www.newhousehold.cn"',
8
     HOST: '"https://xlk.njyz.tech"',
8
     HOST: '"https://xlk.njyz.tech"',
9
-    // WSS_HOST: '"wss://xlk.njyz.tech"',
9
+    WSS_HOST: '"wss://xlk.njyz.tech"',
10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
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
   mini: {},
15
   mini: {},
16
   h5: {
16
   h5: {

+ 1
- 0
jsconfig.json Dosyayı Görüntüle

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

+ 6
- 6
src/pages/index/buildingAround/index.jsx Dosyayı Görüntüle

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