From 33e5c6c5857b51c884ee3c7bab6973aecb5e1c58 Mon Sep 17 00:00:00 2001 From: cobb Date: Wed, 13 Apr 2022 20:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9E=E4=B8=8D=E6=87=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 1 - src/components/HelloWorld.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 3e5a139..8d8af10 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,6 @@ - <%= htmlWebpackPlugin.options.title %> diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 8952176..120904f 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -442,7 +442,7 @@ export default { }, getMyStruct() { var oReq = new XMLHttpRequest(); - oReq.open("POST", "https//json.cobb.wang/sql", false); // 同步请求 + oReq.open("POST", "/sql", false); // 同步请求 oReq.setRequestHeader("Content-type", "application/json"); console.log(this.sqlinput); oReq.send(JSON.stringify({ content: this.sqlinput })); //发送数据需要自定义,这里发送的是JSON结构