mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 01:23:55 +08:00
fixed:前端basepath bug
This commit is contained in:
@@ -29,6 +29,7 @@ class PromptApi:
|
|||||||
return response_success()
|
return response_success()
|
||||||
|
|
||||||
self.config['prompt'] = data['prompt']
|
self.config['prompt'] = data['prompt']
|
||||||
|
# TODO 保存到配置文件
|
||||||
return response_success()
|
return response_success()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function post(api, bodyData, fn) {
|
function post(api, bodyData, fn) {
|
||||||
let basePath = 'http://localhost:8001';
|
let basePath = '';
|
||||||
let token = localStorage.getItem('token');
|
let token = localStorage.getItem('token');
|
||||||
fetch(basePath + api, {
|
fetch(basePath + api, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Reference in New Issue
Block a user