fix:更新路径

main
zhoulexin 4 months ago
parent 33d41da7fa
commit 2944af0f06

@ -10,7 +10,7 @@ class Data {
}
async readSceneList() {
const req = new Request("/get_all_scene_desc");
const req = new Request(request + "/get_all_scene_desc");
let init = {
method: "GET",
//body: JSON.stringify({"points": data})

@ -1,7 +1,8 @@
import { logger } from "./log.js";
import request from "./request.js";
function checkScene(scene) {
const req = new Request(`/checkscene?scene=${scene}`);
const req = new Request(`${request}/checkscene?scene=${scene}`);
let init = {
method: "GET",
//body: JSON.stringify({"points": data})

@ -5,6 +5,7 @@ import {
transpose,
matmul2,
} from "./util.js";
import request from "./request.js";
const annMath = {
sub: function (a, b) {
//pos, rot, scale
@ -277,7 +278,7 @@ var ml = {
// },
predict_rotation: function (data) {
const req = new Request("/predict_rotation");
const req = new Request(request + "/predict_rotation");
let init = {
method: "POST",
body: JSON.stringify({ points: data }),

Loading…
Cancel
Save