提交 22960b7b 编写于 作者: DCloud-yyl's avatar DCloud-yyl

修复uni.request示例的语法警告

上级 755a17eb
......@@ -90,7 +90,7 @@
pageVisible: false,
host: "http://request.dcloud.net.cn",
url: "/api/http/method/get",
method: "GET",
method: "GET" as RequestMethod | null,
data: null as any | null,
header: null as UTSJSONObject | null,
errorCodeUrls: [
......@@ -143,7 +143,7 @@
this.task?.abort();
},
methods: {
changeMethod(e : string) {
changeMethod(e : RequestMethod) {
this.method = e;
this.url = methodMap[e] as string;
this.data = null;
......@@ -239,4 +239,4 @@
}
}
}
</script>
\ No newline at end of file
</script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册