lrf vor 2 Jahren
Ursprung
Commit
34730a6839
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/controller/system/config/.config.js
  2. 1 0
      app/model/system/config.js

+ 2 - 2
app/controller/system/config/.config.js

@@ -1,6 +1,6 @@
 module.exports = {
   create: {
-    requestBody: ['title', 'config', 'agree'],
+    requestBody: ['title', 'config', 'agree', 'bottom_title'],
   },
   destroy: {
     params: ['!id'],
@@ -8,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ['!id'],
-    requestBody: ['title', 'config', 'agree'],
+    requestBody: ['title', 'config', 'agree', 'bottom_title'],
   },
   show: {
     parameters: {

+ 1 - 0
app/model/system/config.js

@@ -12,6 +12,7 @@ const config = {
   title: { type: String, required: false, zh: '系统名称' }, //
   config: { type: Object, required: false, zh: '设置' }, //
   agree: { type: String, required: false, zh: '用户协议' }, // 富文本
+  bottom_title: { type: String, required: false, zh: '底部加载数据结束的文字提示' }, //
 };
 const schema = new Schema(config, { toJSON: { getters: true, virtuals: true } });
 schema.index({ id: 1 });