Update home.js

This commit is contained in:
小虎故洞
2021-02-15 21:28:45 +08:00
committed by GitHub
parent 68e1c099ec
commit 98df852969
+1 -1
View File
@@ -1,6 +1,5 @@
const got = require('@/utils/got');
// 发起 HTTP GET 请求
module.exports = async (ctx) => {
// 传入参数
const type = String(ctx.params.type);
@@ -12,6 +11,7 @@ module.exports = async (ctx) => {
url = 'https://faexport.spangle.org.uk/home.json';
}
// 发起 HTTP GET 请求
const response = await got({
method: 'get',
url: url,