From 6d5c1965e24600cedd8b5a5a7a0063b95a915c8d Mon Sep 17 00:00:00 2001 From: litthy Date: Tue, 22 Aug 2023 15:16:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/data/menus.json | 2 +- src/views/body/Single.vue | 7 ++++--- src/views/index/Index.vue | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/assets/data/menus.json b/src/assets/data/menus.json index 09bc76347..82b49e193 100644 --- a/src/assets/data/menus.json +++ b/src/assets/data/menus.json @@ -17,7 +17,7 @@ "label": "体型数据", "icon": "el-icon-download", "key": "exterior", - "status": true, + "status": false, "isStd": true }, { diff --git a/src/views/body/Single.vue b/src/views/body/Single.vue index 167f8cfe2..718b7ab31 100644 --- a/src/views/body/Single.vue +++ b/src/views/body/Single.vue @@ -131,7 +131,7 @@
独家数据分析 - +
@@ -229,12 +229,12 @@ import User from "@jx3box/jx3box-common/js/user"; import { bodyMap } from "@jx3box/jx3box-data/data/role/body.json"; import { __clients } from "@jx3box/jx3box-common/data/jx3box.json"; import dayjs from "dayjs"; -import bodydata from "@jx3box/jx3box-facedat/src/Bodydat.vue"; +import Bodydat from "@jx3box/jx3box-facedat/src/Bodydat.vue"; import bodyItem from "@/components/body/item"; import faceItem from "@/components/face/item"; export default { name: "single", - components: { Comment, faceItem, bodydata, bodyItem }, + components: { Comment, faceItem, Bodydat, bodyItem }, data: function () { return { loading: false, @@ -270,6 +270,7 @@ export default { return this.post?.user_id == User.getInfo().uid || false; }, bodydata: function () { + console.log(this.post?.data) return this.post?.data || ""; }, previewSrcList: function () { diff --git a/src/views/index/Index.vue b/src/views/index/Index.vue index c5dfe5e0a..34fb54402 100644 --- a/src/views/index/Index.vue +++ b/src/views/index/Index.vue @@ -65,7 +65,7 @@ export default { return { active: 0, - qq: '658035079' + qq: "658035079", }; }, computed: { @@ -78,7 +78,7 @@ export default { return menus; }, submenus() { - return this.menus[this.active].submenus; + return this.menus[this.active].submenus.filter((item) => item.status); }, }, methods: { @@ -92,8 +92,8 @@ export default { message: "内容:" + this.qq, type: "success", }); - }) - } + }); + }, }, };