@jx3box/jx3box-common-ui 6.5.5 → 6.5.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-common-ui",
3
- "version": "6.5.5",
3
+ "version": "6.5.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,9 +31,9 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.7.1",
34
- "@jx3box/jx3box-common": "^7.4.8",
35
- "@jx3box/jx3box-data": "^1.11.5",
36
- "@jx3box/jx3box-editor": "^1.5.5",
34
+ "@jx3box/jx3box-common": "^7.6.1",
35
+ "@jx3box/jx3box-data": "^3.0.3",
36
+ "@jx3box/jx3box-editor": "^1.6.1",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -39,6 +39,7 @@ import Bus from "../service/bus";
39
39
  import { isApp } from "../assets/js/app.js";
40
40
  import {getDecoration} from "../service/cms"
41
41
  import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
42
+ import User from '@jx3box/jx3box-common'
42
43
  export default {
43
44
  name: "LeftSidebar",
44
45
  props: ["open", "withoutBread"],
@@ -77,7 +78,7 @@ export default {
77
78
  this.setDecoration(JSON.parse(decoration_sidebar))
78
79
  return;
79
80
  }
80
- getDecoration({using:1,type:'sidebar'}).then(data=>{
81
+ getDecoration({using:1}).then(data=>{
81
82
  let res=data.data.data
82
83
  if(res.length==0){
83
84
  //空 则为无主题,不再加载接口,界面设No
@@ -87,7 +88,6 @@ export default {
87
88
  let decoration=res.filter(val => {
88
89
  return val.type === 'sidebar'
89
90
  })
90
- console.log(decoration)
91
91
  if(decoration.length>0){
92
92
  sessionStorage.setItem('decoration_sidebar',JSON.stringify(decoration[0]))
93
93
  this.setDecoration(decoration[0])
@@ -118,7 +118,7 @@ export default {
118
118
  },
119
119
  created: function () {
120
120
  this.isOpen = this.open === undefined ? true : this.open;
121
- this.getDecoration()
121
+ User.isLogin() && this.getDecoration()
122
122
  },
123
123
  };
124
124
  </script>