瀏覽代碼

更改动态API默认值

cyy 4 月之前
父節點
當前提交
3e795749aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/config.js

+ 1 - 1
public/config.js

@@ -1,6 +1,6 @@
 (function (global) {
     // 是否启用动态API,启用后,将根据访问IP的origin获取API地址
-    const ENABLE_DYNAMIC_API = false;
+    const ENABLE_DYNAMIC_API = true;
     const HOST_URL = `${location.origin}${location.pathname}`;
     const BASE_URL = ENABLE_DYNAMIC_API ? HOST_URL : "http://dev3.local/";
     global.__IBPS_CONFIG__ = {