소스 검색

change api

SyuanYu 2 년 전
부모
커밋
57daf34eff
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      layouts/collection/list.html
  2. 1 1
      themes/hugo-universal-theme-master/static/js/cz_filter.js

+ 1 - 1
layouts/collection/list.html

@@ -187,7 +187,7 @@
       (function getContentsData() {
         // 線上版網址 http://192.53.174.202:9001/api/
         // 本地端網址 http://localhost:9001/api/
-        fetch('http://localhost:9001/api/contents?url=/collection').then(res => res.json()).then(list => {
+        fetch('http://192.53.174.202:9001/api/contents?url=/collection').then(res => res.json()).then(list => {
           contentsData = list;
           console.log('contentsData', contentsData);
           // filterCategory();

+ 1 - 1
themes/hugo-universal-theme-master/static/js/cz_filter.js

@@ -41,7 +41,7 @@ function update_info(type, ping, budget, room) {
   // 讀取作品集資料(json)
   // 線上版網址 http://192.53.174.202:9001/api/
   // 本地端網址 http://localhost:9001/api/
-  fetch('http://localhost:9001/api/contents?url=/collection')
+  fetch('http://192.53.174.202:9001/api/contents?url=/collection')
     .then(response => response.json())
     .then(items => {
       console.log(items)