mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 23:53:55 +08:00
fixed:前端basepath bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
function post(api, bodyData, fn) {
|
||||
let basePath = 'http://localhost:8001';
|
||||
let basePath = '';
|
||||
let token = localStorage.getItem('token');
|
||||
fetch(basePath + api, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user