Browse Source

message get

night-cherry 1 month ago
parent
commit
7b0403e181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -91,7 +91,7 @@ const app=createApp({
     request.onload=function(){
     request.onload=function(){
       console.log("parse tomcat server string");
       console.log("parse tomcat server string");
       const res=JSON.parse(request.responseText);
       const res=JSON.parse(request.responseText);
-      this.tomcat_res=res;
+      this.tomcat_res=res["message"];
       console.log("res:"+res);
       console.log("res:"+res);
     };
     };
     request.open("POST","http://ancientapes.cc:8080/mineluxuries/book");
     request.open("POST","http://ancientapes.cc:8080/mineluxuries/book");