|
@@ -124,7 +124,7 @@
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
|
|
<!-- 自主学习组件,只在AI自主学习时显示 -->
|
|
<!-- 自主学习组件,只在AI自主学习时显示 -->
|
|
|
- <SelfDirectedLearning v-if="currentOpenedMenu === 'selfstudy'"
|
|
|
|
|
|
|
+ <SelfDirectedLearning v-if="selfStudyMenuId && currentOpenedMenu === selfStudyMenuId"
|
|
|
@refreshData="refreshData" />
|
|
@refreshData="refreshData" />
|
|
|
|
|
|
|
|
<div
|
|
<div
|
|
@@ -231,6 +231,11 @@ const roleRouteMenuSet = computed(() => {
|
|
|
const currentActiveIndex = ref('/general-1')
|
|
const currentActiveIndex = ref('/general-1')
|
|
|
// 当前打开的菜单
|
|
// 当前打开的菜单
|
|
|
const currentOpenedMenu = ref('/general')
|
|
const currentOpenedMenu = ref('/general')
|
|
|
|
|
+// 自主学习菜单ID
|
|
|
|
|
+const selfStudyMenuId = computed(() => {
|
|
|
|
|
+ const menu = menuConfig.value.find(m => m.id === '/selfstudy')
|
|
|
|
|
+ return menu ? menu.id : ''
|
|
|
|
|
+})
|
|
|
// 菜单初始化状态
|
|
// 菜单初始化状态
|
|
|
const menuInitialized = ref(false)
|
|
const menuInitialized = ref(false)
|
|
|
// 存储选中状态的键名
|
|
// 存储选中状态的键名
|