Browse Source

搞不懂

main
cobb 4 years ago
parent
commit
33e5c6c585
  1. 1
      public/index.html
  2. 2
      src/components/HelloWorld.vue

1
public/index.html

@ -4,7 +4,6 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>

2
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

Loading…
Cancel
Save