@jx3box/jx3box-vue3-ui 0.2.2 → 0.2.3

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-vue3-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,11 +1,11 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https_v2.js";
1
+ import { $cms } from "@jx3box/jx3box-common/js/https_v2.js";
2
2
 
3
3
  function getBreadcrumb(name) {
4
- return $helper().get(`/api/breadcrumb/${name}`);
4
+ return $cms().get(`/api/cms/breadcrumb/${name}`);
5
5
  }
6
6
 
7
7
  function getBreadcrumbs(params) {
8
- return $helper().get(`/api/breadcrumbs`, {
8
+ return $cms().get(`/api/cms/breadcrumb`, {
9
9
  params: params,
10
10
  });
11
11
  }
package/src/App.vue CHANGED
@@ -8,6 +8,7 @@
8
8
  :publishEnable="true"
9
9
  :feedbackEnable="true"
10
10
  :adminEnable="true"
11
+ :crumbEnable="true"
11
12
  >
12
13
  <template #logo>
13
14
  <img svg-inline src="../assets/img/jx3.svg" />
@@ -16,7 +16,7 @@ export default {
16
16
  mounted() {
17
17
  getBreadcrumb(this.name).then((res) => {
18
18
  res = res.data;
19
- this.html = res.data.breadcrumb?.html || "";
19
+ this.html = res.data?.html || "";
20
20
  });
21
21
  },
22
22
  };
@@ -32,7 +32,11 @@
32
32
  >盒币
33
33
  </el-radio>
34
34
  <el-radio label="custom" border>自定义</el-radio>
35
- <el-input v-model="amount" v-show="count === 'custom'" placeholder="输入自定义数量"></el-input>
35
+ <el-input
36
+ v-model="amount"
37
+ v-show="count === 'custom'"
38
+ placeholder="输入自定义数量"
39
+ ></el-input>
36
40
  </el-radio-group>
37
41
  </div>
38
42
  </div>
@@ -64,7 +68,7 @@
64
68
 
65
69
  <script>
66
70
  import { grantBoxcoin } from "../../service/thx.js";
67
- import { getBreadcrumb } from "../../service/helper.js";
71
+ import { getBreadcrumb } from "../../service/breadcrumb.js";
68
72
  import User from "@jx3box/jx3box-common/js/user";
69
73
  import Contributors from "./Contributors.vue";
70
74
  export default {
@@ -157,7 +161,7 @@ export default {
157
161
  this.fetchingCurrentRelease = true;
158
162
  getBreadcrumb(`current-release-${this.hostClient}`)
159
163
  .then((res) => {
160
- this.remark += res;
164
+ this.remark += res.data.data.html;
161
165
  })
162
166
  .catch(() => {
163
167
  this.$message({
package/service/helper.js DELETED
@@ -1,16 +0,0 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https_v2";
2
-
3
- function getCollection(id) {
4
- return $helper().get(`/api/post/collection/${id}`);
5
- }
6
-
7
- // 面包屑
8
- function getBreadcrumb(key) {
9
- return $helper()
10
- .get(`/api/breadcrumb/${key}`)
11
- .then((res) => {
12
- return res.data.data.breadcrumb.html || "";
13
- });
14
- }
15
-
16
- export { getCollection, getBreadcrumb };