mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
fixed:前端basepath bug
This commit is contained in:
@@ -29,6 +29,7 @@ class PromptApi:
|
||||
return response_success()
|
||||
|
||||
self.config['prompt'] = data['prompt']
|
||||
# TODO 保存到配置文件
|
||||
return response_success()
|
||||
|
||||
except Exception as e:
|
||||
|
||||
@@ -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