@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 +1 -1
- package/service/breadcrumb.js +3 -3
- package/src/App.vue +1 -0
- package/src/bread/Crumb.vue +1 -1
- package/src/interact/BoxcoinAdmin.vue +7 -3
- package/service/helper.js +0 -16
package/package.json
CHANGED
package/service/breadcrumb.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $cms } from "@jx3box/jx3box-common/js/https_v2.js";
|
|
2
2
|
|
|
3
3
|
function getBreadcrumb(name) {
|
|
4
|
-
return $
|
|
4
|
+
return $cms().get(`/api/cms/breadcrumb/${name}`);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
function getBreadcrumbs(params) {
|
|
8
|
-
return $
|
|
8
|
+
return $cms().get(`/api/cms/breadcrumb`, {
|
|
9
9
|
params: params,
|
|
10
10
|
});
|
|
11
11
|
}
|
package/src/App.vue
CHANGED
package/src/bread/Crumb.vue
CHANGED
|
@@ -32,7 +32,11 @@
|
|
|
32
32
|
>盒币
|
|
33
33
|
</el-radio>
|
|
34
34
|
<el-radio label="custom" border>自定义</el-radio>
|
|
35
|
-
<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/
|
|
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 };
|