|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<el-container class="layout-container">
|
|
<el-container class="layout-container">
|
|
|
- <Sidebar />
|
|
|
|
|
|
|
+ <!-- 被 SCRM 等宿主系统内嵌时隐藏左侧菜单(嵌入方自带导航,避免双层菜单) -->
|
|
|
|
|
+ <Sidebar v-if="!embedded" />
|
|
|
<el-container direction="vertical">
|
|
<el-container direction="vertical">
|
|
|
<Navbar />
|
|
<Navbar />
|
|
|
<el-main class="main-content">
|
|
<el-main class="main-content">
|
|
@@ -13,6 +14,9 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import Sidebar from '@/components/Sidebar/index.vue'
|
|
import Sidebar from '@/components/Sidebar/index.vue'
|
|
|
import Navbar from '@/components/Navbar/index.vue'
|
|
import Navbar from '@/components/Navbar/index.vue'
|
|
|
|
|
+import { isEmbedded } from '@/utils/auth'
|
|
|
|
|
+
|
|
|
|
|
+const embedded = isEmbedded()
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|