@jx3box/jx3box-editor 2.1.5 → 2.1.7

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.5",
3
+ "version": "2.1.7",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/item.js CHANGED
@@ -4,7 +4,7 @@ import { $node, $cms } from "@jx3box/jx3box-common/js/https";
4
4
  function get_item(item_id, client) {
5
5
  if (!item_id) return;
6
6
 
7
- return $node().get(`/resource/${client}/item_merged.${5_566}`);
7
+ return $node().get(`/resource/${client}/item_merged.${item_id}`);
8
8
  }
9
9
 
10
10
  // 获取清单
package/src/Item.vue CHANGED
@@ -341,16 +341,13 @@ export default {
341
341
  // 服务端拉取
342
342
  }else{
343
343
  get_item(this.item_id, this.final_client).then((res) => {
344
- let data = res.data;
345
- if (data.code === 200) {
346
- let item = data.data.item;
347
- let isValidItem = JSON.stringify(item) !== "{}"
348
- if(isValidItem){
349
- this.source = item
350
- sessionStorage.setItem(this.cache_key,JSON.stringify(this.source));
351
- }else{
352
- this.source = null
353
- }
344
+ let item = res.data;
345
+ let isValidItem = JSON.stringify(item) !== "{}"
346
+ if(isValidItem){
347
+ this.source = item
348
+ sessionStorage.setItem(this.cache_key,JSON.stringify(this.source));
349
+ }else{
350
+ this.source = null
354
351
  }
355
352
  });
356
353
  }