mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
fixed:前端basepath bug
This commit is contained in:
parent
82ab1a82b1
commit
b2293ce094
2 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue