农场 nuxt3实现的大屏界面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
398 B

import type { IncomingMessage, ServerResponse } from 'http';
import axios from 'axios';
export default async (req: IncomingMessage, res: ServerResponse) => {
const { data } = await axios.get(
'https://devapi.qweather.com/v7/weather/now?key=9764d65c999349a9b42c42a8f1052a81&location=112.48699,37.94036&lang =zh',
);
console.log('res: ', data);
return { code: 200, msg: 'ok', data };
};