fix:打印接口
This commit is contained in:
parent
af13ba23af
commit
c4b28f8d5e
|
@ -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:{
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue