|
@@ -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>
|