Skip to content

Commit

Permalink
perf: 实装admindrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed May 10, 2024
1 parent 02e695a commit 8fd4706
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/layout/SingleLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<Header></Header>
<Breadcrumb name="云端宏" slug="macro" root="/macro" :publishEnable="true" :adminEnable="true" :feedbackEnable="true" :crumbEnable="true">
<template #op-prepend>
<AdminDirectMessage v-if="post && post.ID" :user-id="user_id" :sourceId="String(post.ID)" :sourceType="post.post_type"></AdminDirectMessage>
<!-- <AdminDirectMessage v-if="post && post.ID" :user-id="user_id" :sourceId="String(post.ID)" :sourceType="post.post_type"></AdminDirectMessage> -->
<AdminDrop v-if="isEditor" :post="post" :user-id="user_id" />
</template>
<template #title>
<span>{{ title }}</span>
Expand All @@ -25,8 +26,9 @@
<script>
import Nav from "@/components/single/single_nav.vue";
import Side from "@/components/single/single_side.vue";
import AdminDirectMessage from "@jx3box/jx3box-common-ui/src/bread/AdminDirectMessage.vue"
import { getAppIcon, getAppID } from "@jx3box/jx3box-common/js/utils";
import AdminDrop from "@jx3box/jx3box-common-ui/src/bread/AdminDrop.vue";
import User from "@jx3box/jx3box-common/js/user";
export default {
name: "SingleLayout",
props: [],
Expand All @@ -44,12 +46,16 @@ export default {
},
title() {
return this.post.post_title || document.title;
}
},
isEditor() {
return User.isEditor()
},
},
components: {
Nav,
Side,
AdminDirectMessage,
// AdminDirectMessage,
AdminDrop,
},
};
</script>
Expand Down

0 comments on commit 8fd4706

Please sign in to comment.