vue2-client 1.8.179 → 1.8.181

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.179",
3
+ "version": "1.8.181",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
package/src/App.vue CHANGED
@@ -29,7 +29,7 @@ export default {
29
29
  const configStr = localStorage.getItem(process.env.VUE_APP_WEB_CONFIG_KEY)
30
30
  if (configStr) {
31
31
  const config = JSON.parse(configStr)
32
- if (config.$globalProp.environment === 'dev') {
32
+ if (config?.$globalProp?.environment === 'dev') {
33
33
  // 设置水印
34
34
  waterMark('开发环境')
35
35
  }
@@ -289,7 +289,7 @@ export default {
289
289
  this.getResultText(2)
290
290
  } else if (e === '区') {
291
291
  if (this.model[2].name !== item.name) {
292
- this.tagData.streetData = item.children
292
+ this.tagData.streetData = item.children || []
293
293
  this.model[2].name = item.name
294
294
  this.model[2].code = item.code
295
295
  this.model[3] = { name: '', code: '' }
@@ -300,7 +300,7 @@ export default {
300
300
  this.getResultText(3)
301
301
  } else if (e === '街道') {
302
302
  if (this.model[3].name !== item.name) {
303
- this.tagData.communityData = item.children
303
+ this.tagData.communityData = item.children || []
304
304
  this.model[3].name = item.name
305
305
  this.model[3].code = item.code
306
306