@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 +1 -1
- package/service/item.js +1 -1
- package/src/Item.vue +7 -10
package/package.json
CHANGED
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.${
|
|
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
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
}
|