diff --git a/src/views/dashboard/home.vue b/src/views/dashboard/home.vue index 94543f8..9d2729f 100644 --- a/src/views/dashboard/home.vue +++ b/src/views/dashboard/home.vue @@ -336,7 +336,7 @@ export default { this.getTime(); }, mounted() { - this.readExcelFile("http://192.168.1.35:8080/excel/wuliu.xlsx"); + this.readExcelFile("http://"+location.host+"/excel/wuliu.xlsx"); queryWeath().then((res) => { this.temp = res.result.now.temp; this.weather = res.result.now.text;