|
@@ -35,7 +35,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { ref, onMounted } from 'vue'
|
|
|
|
|
|
|
+import { ref, onMounted} from 'vue'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
// 导入图片 白色
|
|
// 导入图片 白色
|
|
@@ -78,12 +78,13 @@ const groupList = ref([
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
// 从路由判断当前应该选中的菜单项
|
|
// 从路由判断当前应该选中的菜单项
|
|
|
const path = route.path
|
|
const path = route.path
|
|
|
- if (path.includes('ai-questions')) {
|
|
|
|
|
- currentActiveIndex.value = '0'
|
|
|
|
|
|
|
+ const from = route.query.from
|
|
|
|
|
+ if (path.includes('ai-questions') && from === 'ai-laboratory') {
|
|
|
|
|
+ currentActiveIndex.value = '2' // 数字人老师
|
|
|
|
|
+ } else if (path.includes('ai-questions')) {
|
|
|
|
|
+ currentActiveIndex.value = '0' // 智能问答
|
|
|
} else if (path.includes('ai-painting')) {
|
|
} else if (path.includes('ai-painting')) {
|
|
|
- currentActiveIndex.value = '1'
|
|
|
|
|
- } else if (path.includes('ai-laboratory')) {
|
|
|
|
|
- currentActiveIndex.value = '2'
|
|
|
|
|
|
|
+ currentActiveIndex.value = '1' // 智能绘画
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|