xy 7 months ago
parent f6d8f447c5
commit 4a8acb9872

@ -570,7 +570,7 @@ export default {
async getWeather() {
try {
const res = await axios.get(
`https://restapi.amap.com/v3/weather/weatherInfo?city=320400&key=15ecd1e7de61e684959f43d8965a89f0`
`https://restapi.amap.com/v3/weather/weatherInfo?city=320400&key=a37c084cac0c3459b892276ec0a1c880`
);
if (res.status === 200) {
this.weather = res.data.lives[0];

@ -1,5 +1,5 @@
<script>
import {deepCopy} from "@/utils";
import {deepCopy,debounce} from "@/utils";
import formBuilder from "@/utils/formBuilder";
import { PopupManager } from "element-ui/lib/utils/popup";
import request from '@/utils/request'
@ -151,6 +151,7 @@ export default {
methods: {
getToken,
request,
debounce,
async validate() {
this.customValidate()
const $elForm = this.$refs['elForm']

Loading…
Cancel
Save