Skip to content

Commit

Permalink
fix: 隐藏
Browse files Browse the repository at this point in the history
  • Loading branch information
zixuan1986 committed Aug 22, 2023
1 parent 8a616a3 commit 6d5c196
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/assets/data/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"label": "体型数据",
"icon": "el-icon-download",
"key": "exterior",
"status": true,
"status": false,
"isStd": true
},
{
Expand Down
7 changes: 4 additions & 3 deletions src/views/body/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<!-- 数据区 -->
<div class="m-single-data m-single-content-box" v-if="has_buy && bodydata">
<el-divider content-position="left">独家数据分析</el-divider>
<bodydata v-if="bodydata" :data="bodydata" />
<Bodydat v-if="bodydata" :data="bodydata" />
</div>
<!--下载区-->
<div class="m-face-files m-single-content-box" v-if="has_buy && downFileList && downFileList.length > 0">
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 () {
Expand Down
8 changes: 4 additions & 4 deletions src/views/index/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
return {
active: 0,
qq: '658035079'
qq: "658035079",
};
},
computed: {
Expand All @@ -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: {
Expand All @@ -92,8 +92,8 @@ export default {
message: "内容:" + this.qq,
type: "success",
});
})
}
});
},
},
};
</script>
Expand Down

0 comments on commit 6d5c196

Please sign in to comment.