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结构