@jx3box/jx3box-editor 2.1.3 → 2.1.5

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.
@@ -59,6 +59,12 @@
59
59
  border-top: none;
60
60
  display: none;
61
61
  line-height: 2.2;
62
+ }
63
+
64
+ pre.e-details{
65
+ white-space: pre-line;
66
+ }
67
+ div.e-details{
62
68
  white-space: normal;
63
69
  }
64
70
  }
@@ -68,6 +74,5 @@
68
74
  }
69
75
  .e-details {
70
76
  display: block;
71
- white-space: normal;
72
77
  }
73
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -528,6 +528,11 @@
528
528
  border-top: none;
529
529
  display: none;
530
530
  line-height: 2.2;
531
+ }
532
+ .c-article-tinymce pre.e-details {
533
+ white-space: pre-line;
534
+ }
535
+ .c-article-tinymce div.e-details {
531
536
  white-space: normal;
532
537
  }
533
538
  .c-article-editor .e-summary {
@@ -535,7 +540,6 @@
535
540
  }
536
541
  .c-article-editor .e-details {
537
542
  display: block;
538
- white-space: normal;
539
543
  }
540
544
  .hevue-imgpreview-wrap .he-img-wrap {
541
545
  background: rgba(0, 0, 0, 0.8);
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.${5_566}`);
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
  },