zengh
2021-05-08 2df82dbc10c977697cba04cabbbd892ad9d0e611
https调整
1 files modified
4 ■■■■ changed files
public/weather/index.html 4 ●●●● patch | view | raw | blame | history
public/weather/index.html
@@ -5,7 +5,6 @@
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>天气</title>
    <!-- axios -->
    <script src='../map/lib/axios.js'></script>
@@ -61,7 +60,8 @@
                },
                getWeather() {
                    var that = this;
                    var url = `http://wthrcdn.etouch.cn/weather_mini?city=${this.city}`
                    // var url = `http://wthrcdn.etouch.cn/weather_mini?city=${this.city}`
                    var url = `https://web.byisf.com/weather/weather_mini?city=${this.city}`
                    axios.get(url).then((res) => {
                        var data = res.data.data,
                            nowDay = data.forecast[0];