fix:更新路径

main
zhoulexin 4 months ago
parent 33d41da7fa
commit 2944af0f06

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

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

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

Loading…
Cancel
Save