diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 070ae22..157f45c 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -28,6 +28,7 @@ { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, ], }, + hot: true, contentBase: false, // since we use CopyWebpackPlugin. compress: true, diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 070ae22..157f45c 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -28,6 +28,7 @@ { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, ], }, + hot: true, contentBase: false, // since we use CopyWebpackPlugin. compress: true, diff --git a/config/index.js b/config/index.js index 358cce1..1cf49cc 100644 --- a/config/index.js +++ b/config/index.js @@ -99,7 +99,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "192.168.30.144", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 070ae22..157f45c 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -28,6 +28,7 @@ { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, ], }, + hot: true, contentBase: false, // since we use CopyWebpackPlugin. compress: true, diff --git a/config/index.js b/config/index.js index 358cce1..1cf49cc 100644 --- a/config/index.js +++ b/config/index.js @@ -99,7 +99,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "192.168.30.144", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 5450d57..a47c404 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -1548,6 +1548,7 @@ // console.error(err); }); }, + async gotoProgramArea(areaCode) { //初始化项目行政区域边框 // Create layer @@ -1556,7 +1557,7 @@ } let response = await fetch( - "https://geo.datav.aliyun.com/areas_v2/bound/" + areaCode + ".json" + "http://geo.datav.aliyun.com/areas_v2/bound/" + areaCode + ".json" ); let dataJson = await response.json(); @@ -1717,8 +1718,10 @@ //飞行到指定的城市项目中心点 // this.flyToCity() //?要判断currentZoom加哪一个 - if (this.currentZoom >= 8) this.map.addLayer(this.vector); - else this.map.addLayer(this.layer); + if (this.currentZoom >= 8) this.map.addLayer(this.vector); + else this.map.addLayer(this.layer); + + }, getStyleOfCar(feature) {