Parcourir la source

Update static/home.html

StrayWarrior il y a 6 mois
Parent
commit
600ce3ea46

+ 3 - 3
long-article-recommend-service/src/main/resources/static/home.html → long-article-recommend-service/src/main/resources/static/internal/home.html

@@ -75,7 +75,7 @@
         const title = document.getElementById('titleInput').value;
 
         // 调用后端查询接口
-        fetch(`http://127.0.0.1:8001/articleCategory/list`, { // 替换为实际接口
+        fetch(`/internal/articleCategory/list`, { // 替换为实际接口
             method: 'POST',
             headers: {
                 'Content-Type': 'application/json',
@@ -179,7 +179,7 @@
         const categoryInput = document.getElementById(`category-` + id).value; // 获取输入框的值
 
         // 调用后端更新接口
-        fetch('http://127.0.0.1:8001/articleCategory/updateCategory', { // 替换为实际接口
+        fetch('/internal/articleCategory/updateCategory', { // 替换为实际接口
             method: 'POST',
             headers: {
                 'Content-Type': 'application/json',
@@ -199,4 +199,4 @@
     }
 </script>
 </body>
-</html>
+</html>