@jx3box/jx3box-ui 2.3.23 → 2.3.25

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-ui",
3
- "version": "2.3.23",
3
+ "version": "2.3.25",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "@element-plus/icons-vue": "^2.3.2",
36
36
  "@jx3box/jx3box-common": "^9.2.9",
37
37
  "@jx3box/jx3box-data": "^3.9.6",
38
- "@jx3box/jx3box-editor": "^3.2.11",
38
+ "@jx3box/jx3box-editor": "^3.2.13",
39
39
  "@jx3box/jx3box-emotion": "^1.3.2",
40
40
  "@jx3box/jx3box-macro": "^1.0.4",
41
41
  "@jx3box/jx3box-talent": "^1.3.14",
@@ -13,13 +13,12 @@
13
13
  </i>
14
14
  </span>
15
15
  <ul class="u-menu u-pop-content">
16
- <template v-for="item in userPanel">
17
- <li :key="item.label" v-if="item.remark == 'auth' ? !isAuth : true">
16
+ <template v-for="item in userPanel" :key="item.label">
17
+ <li>
18
18
  <a :href="item.link" :target="item.target || '_self'" class="u-menu-item" @click="onClick(item)">
19
19
  <img :src="resolveImg(item.icon)" class="u-menu-icon" :alt="item.icon" />
20
20
  {{ getPanelLabel(item) }}
21
- <span v-if="showPop" class="u-new">New!</span>
22
- <span v-if="item.remark == 'auth' && !isAuth" class="u-new">New!</span>
21
+ <span v-if="showPop && isFeaturePanelItem(item)" class="u-new">New!</span>
23
22
  </a>
24
23
  <a
25
24
  v-if="isFeaturePanelItem(item) && hasAccountReadyIssue"
@@ -49,7 +48,6 @@
49
48
  <script>
50
49
  import { getMenu } from "../../service/header";
51
50
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
52
- import User from "@jx3box/jx3box-common/js/user";
53
51
  import i18nMixin from "../../i18n/mixin";
54
52
  import { getConfig } from "../../service/cms";
55
53
  // import manageIcon from "@/assets/img/components/common/header/manage.svg";
@@ -109,7 +107,7 @@ export default {
109
107
  computed: {
110
108
  userPanel: function () {
111
109
  return this.panel.filter((item) => {
112
- return !item.onlyAdmin;
110
+ return !item.onlyAdmin && item.remark !== "auth";
113
111
  });
114
112
  },
115
113
  adminPanel: function () {
@@ -117,9 +115,6 @@ export default {
117
115
  return item.onlyAdmin;
118
116
  });
119
117
  },
120
- isAuth() {
121
- return User.isPhoneMember();
122
- },
123
118
  hasAccountReadyIssue() {
124
119
  return this.accountReadyIncomplete;
125
120
  },