瀏覽代碼

Fixed error on loading custom modules

Nathan Schneider 2 年之前
父節點
當前提交
bbaee76681
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/js/vue.rules.js

+ 1 - 1
assets/js/vue.rules.js

@@ -269,7 +269,6 @@ const app = Vue.createApp({
             "Configuration";
             "Configuration";
       document.getElementById("newConfigValue").value =
       document.getElementById("newConfigValue").value =
             "Value";
             "Value";
-      output.config = {};
       // delete unnecessary properties
       // delete unnecessary properties
       delete output.content;
       delete output.content;
       delete output.readonly;
       delete output.readonly;
@@ -629,6 +628,7 @@ const app = Vue.createApp({
     newCustomModule() {
     newCustomModule() {
       const module = this.newModule();
       const module = this.newModule();
       module.name = 'New Module';
       module.name = 'New Module';
+      module.config = {};
       this.addToEditor(module);
       this.addToEditor(module);
     },
     },
     /**
     /**