@jx3box/jx3box-editor 2.1.4 → 2.1.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/item.js CHANGED
@@ -1,22 +1,15 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https";
1
+ import { $node, $cms } from "@jx3box/jx3box-common/js/https";
2
2
 
3
3
  // 获取物品
4
4
  function get_item(item_id, client) {
5
5
  if (!item_id) return;
6
- let options = {
7
- url: `/api/item/${item_id}`,
8
- params : {
9
- client
10
- }
11
- };
12
- return $helper({ mute: true })(options);
6
+
7
+ return $node().get(`/resource/${client}/item_merged.${item_id}`);
13
8
  }
14
9
 
15
10
  // 获取清单
16
11
  function get_plan(plan_id) {
17
- return $helper()({
18
- url: `api/item_plan/${plan_id}`,
19
- });
12
+ return $cms().get(`/api/cms/app/item-plan/${plan_id}`);
20
13
  }
21
14
 
22
15
  export { get_item, get_plan };
package/src/Equip.vue CHANGED
@@ -99,7 +99,7 @@ export default {
99
99
  mounted: function() {
100
100
  if (this.id) {
101
101
  get_plan(this.id).then((res) => {
102
- this.plan_data = res.data.data.plan;
102
+ this.plan_data = res.data.data;
103
103
  });
104
104
  }
105
105
  },