render-core 1.0.124 → 1.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,12 +60,12 @@ var AppController = /** @class */ (function () {
60
60
  }
61
61
  };
62
62
  AppController.prototype.setFiled = function (filed, value) {
63
+ var data = {};
64
+ Reflect.set(data, filed, value);
63
65
  //写入数
64
66
  status_write({
65
67
  type: "local",
66
- fields: {
67
- theme: value
68
- }
68
+ fields: data
69
69
  });
70
70
  //更新数据
71
71
  this.loadFileds();
@@ -55,12 +55,12 @@ var ContextController = /** @class */ (function () {
55
55
  * @param value
56
56
  */
57
57
  ContextController.prototype.setFiled = function (filed, value) {
58
+ var data = {};
59
+ Reflect.set(data, filed, value);
58
60
  //写入数据
59
61
  status_write({
60
62
  type: "session",
61
- fields: {
62
- theme: value
63
- }
63
+ fields: data
64
64
  });
65
65
  //更新数据
66
66
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.0.124",
3
+ "version": "1.0.125",
4
4
  "description": "The core of render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",