|
|
@@ -27,7 +27,7 @@
|
|
|
:key="index"
|
|
|
@click="navigateToAI(item)"
|
|
|
>
|
|
|
- <el-icon><component :is="item.icon" /></el-icon>
|
|
|
+ <img :src="item.icon" alt="" class="menu-icon" />
|
|
|
{{ item.title }}
|
|
|
</el-menu-item>
|
|
|
</el-menu>
|
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
MagicStick,
|
|
|
User
|
|
|
} from '@element-plus/icons-vue'
|
|
|
-const router = useRouter()
|
|
|
+
|
|
|
|
|
|
// 添加抽屉显示状态
|
|
|
const drawerVisible = ref(true)
|
|
|
@@ -87,7 +87,7 @@ const drawerVisible = ref(true)
|
|
|
const toggleDrawer = () => {
|
|
|
drawerVisible.value = !drawerVisible.value
|
|
|
}
|
|
|
-
|
|
|
+const router = useRouter()
|
|
|
|
|
|
// 返回上一页
|
|
|
const goBack = () => {
|
|
|
@@ -101,6 +101,11 @@ import NumberPeople03 from '@/assets/images/number-people03.png'
|
|
|
import NumberPeople04 from '@/assets/images/number-people04.png'
|
|
|
import NumberPeople05 from '@/assets/images/number-people05.png'
|
|
|
|
|
|
+// 导入图片
|
|
|
+import question from '@/assets/icon/question.png'
|
|
|
+import painting from '@/assets/icon/painting.png'
|
|
|
+import human from '@/assets/icon/human.png'
|
|
|
+
|
|
|
// 渲染数字人老师及图片
|
|
|
const peopleList = ref([
|
|
|
{ id: 21, name: '鲁迅', image: NumberPeople01 , message: '您好,我叫鲁迅,著名的文学家、思想家、革命家、教育家、民主战士,新文化运动的重要参与者,中国现代文学的奠基人之一' },
|
|
|
@@ -140,15 +145,15 @@ const navigateToAI = (group) => {
|
|
|
// 渲染侧边栏
|
|
|
const groupList = ref([
|
|
|
{
|
|
|
- icon: ChatLineRound,
|
|
|
+ icon: question,
|
|
|
title: '智能问答'
|
|
|
},
|
|
|
{
|
|
|
- icon: MagicStick,
|
|
|
+ icon: painting,
|
|
|
title: '智能绘画'
|
|
|
},
|
|
|
{
|
|
|
- icon: User,
|
|
|
+ icon: human,
|
|
|
title: '数字人老师'
|
|
|
}
|
|
|
])
|
|
|
@@ -204,6 +209,11 @@ const groupList = ref([
|
|
|
.icon-expand .el-icon:active {
|
|
|
color: black;
|
|
|
}
|
|
|
+.menu-icon {
|
|
|
+ width:rpx(11);
|
|
|
+ height: rpx(11);
|
|
|
+ margin-right: rpx(2);
|
|
|
+}
|
|
|
|
|
|
// 侧边栏
|
|
|
.left-group {
|