萤火科技 4 жил өмнө
parent
commit
83c123e4f7
1 өөрчлөгдсөн 10 нэмэгдсэн , 1 устгасан
  1. 10 1
      config.js

+ 10 - 1
config.js

@@ -1,7 +1,16 @@
 module.exports = {
+
   // 系统名称
   name: "萤火商城2.0",
+
   // 必填: 后端api地址, 斜杠/结尾, 参照下面格式
   // 例如: https://www.你的域名.com/index.php?s=/api/
-  apiUrl: "https://www.你的域名.com/index.php?s=/api/"
+  apiUrl: "https://www.你的域名.com/index.php?s=/api/",
+
+  /**
+   * 是否启用商城设置缓存
+   * 将减少用户端重复请求; 正式运营时请设为true, 开启后商城设置同步前端需10分钟缓存
+   */
+  enabledSettingCache: true,
+
 }