萤火科技 4 年之前
父节点
当前提交
83c123e4f7
共有 1 个文件被更改,包括 10 次插入 和 1 次删除
  1. 10 1
      config.js

+ 10 - 1
config.js

@@ -1,7 +1,16 @@
 module.exports = {
 module.exports = {
+
   // 系统名称
   // 系统名称
   name: "萤火商城2.0",
   name: "萤火商城2.0",
+
   // 必填: 后端api地址, 斜杠/结尾, 参照下面格式
   // 必填: 后端api地址, 斜杠/结尾, 参照下面格式
   // 例如: https://www.你的域名.com/index.php?s=/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,
+
 }
 }