xy 1 year ago
parent f6d8f447c5
commit 4a8acb9872

@ -570,7 +570,7 @@ export default {
async getWeather() { async getWeather() {
try { try {
const res = await axios.get( 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) { if (res.status === 200) {
this.weather = res.data.lives[0]; this.weather = res.data.lives[0];

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

Loading…
Cancel
Save