瀏覽代碼

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)