|
|
@@ -90,13 +90,9 @@ export default {
|
|
|
// 编辑窗口
|
|
|
getData() {
|
|
|
getHosProfile().then((resp) => {
|
|
|
- const { code, msg, data } = resp
|
|
|
- if (code === 200) {
|
|
|
- this.viewData = data
|
|
|
- this.mapCenter = [data.hosWzjd, data.hosWzwd]
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ const { data } = resp
|
|
|
+ this.viewData = data
|
|
|
+ this.mapCenter = [data.hosWzjd, data.hosWzwd]
|
|
|
}).catch((error) => {
|
|
|
console.log(error)
|
|
|
})
|