fix:打印接口

This commit is contained in:
shijing 2025-01-22 14:34:35 +08:00
parent af13ba23af
commit c4b28f8d5e
2 changed files with 5 additions and 4 deletions

View File

@ -460,8 +460,8 @@ export default {
prints: {
name: "打印",
req: async function (data) {
// return await http.post(`${config.API_URL}/prints/`, data);
return await http.post("http://localhost:8080/prints/", data);
// return await http.post("http://127.0.0.1:8080/prints/", data);
},
},
ana:{

View File

@ -59,7 +59,8 @@ export default {
formData.append("printer_name", "GP-3150TN"); //
// POST
http.post("http://localhost:8080/prints/", formData)
that.$API.wpm.prints.req(formData)
// http.post("http://localhost:8080/prints/", formData)
.then((response) => {
console.log("postRes", response);
})
@ -103,8 +104,8 @@ export default {
let obj = {};
obj.printer_commands = str;
obj.printer_name = "GP-3150TNS";
http.post("http://localhost:8080/prints/", obj)
// http.post("http://192.168.1.242:8080/prints/", obj)
that.$API.wpm.prints.req(obj)
// http.post("http://localhost:8080/prints/", obj)
.then((response) => {
console.log("postRes", response);
})