samlax12 commited on
Commit
0f23033
·
verified ·
1 Parent(s): 4bc5411

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -1
templates/index.html CHANGED
@@ -1,3 +1,4 @@
 
1
  <!DOCTYPE html>
2
  <html lang="zh-CN">
3
  <head>
@@ -1099,7 +1100,7 @@ function toggleKnowledgeSelection(element) {
1099
  // 加载知识库列表
1100
  async function loadKnowledgeBases() {
1101
  try {
1102
- const response = await fetch('/api/knowledge');
1103
  const result = await response.json();
1104
 
1105
  if (result.success) {
 
1
+ <!-- templates/index.html -->
2
  <!DOCTYPE html>
3
  <html lang="zh-CN">
4
  <head>
 
1100
  // 加载知识库列表
1101
  async function loadKnowledgeBases() {
1102
  try {
1103
+ const response = await fetch(`${window.location.protocol}//${window.location.host}/api/knowledge`);
1104
  const result = await response.json();
1105
 
1106
  if (result.success) {