wujingjing
2025-04-02 5fb58c10b2bb44b3f2d3bdab4d7a6619271e2bbf
src/layout/component/sidebar/Sidebar.vue
@@ -8,9 +8,9 @@
            </div>
         </div>
      </div>
      <div class="hide-sidebar" @click="toggleSidebar" v-if="!isSharePage">
      <!-- <div class="hide-sidebar" @click="toggleSidebar" v-if="!isSharePage">
         <i class="text-[#fff] transition-all ywifont ywicon-zuoyoujiantou"></i>
      </div>
      </div> -->
      <div class="aside_center">
         <ChatRecord />
@@ -25,14 +25,13 @@
import { computed } from 'vue';
import ChatRecord from './components/ChatRecord.vue';
import MenuList from './components/MenuList.vue';
import { isSharePage } from '/@/stores/chatRoom';
const emit = defineEmits(['toggleSidebar']);
const prop = defineProps(['isShow']);
const leftBox = computed(() => (prop.isShow ? 252 : 198));
const toggleSidebar = () => {
   emit('toggleSidebar', false);
};
</script>
<style scoped lang="scss">