fixed:前端basepath bug

This commit is contained in:
hrz
2025-02-15 17:49:22 +08:00
parent 82ab1a82b1
commit b2293ce094
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@ class PromptApi:
return response_success()
self.config['prompt'] = data['prompt']
# TODO 保存到配置文件
return response_success()
except Exception as e:
+1 -1
View File
@@ -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",