| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { computed, reactive, ref, watch } from 'vue'; |
| | | import router from '/@/router'; |
| | | import { activeGroupType, sceneGroupList, sectionAList, topGroupId } from '/@/stores/chatRoom'; |
| | | import { computed, reactive, ref } from 'vue'; |
| | | import { activeGroupType, sceneGroupList, topGroupId } from '/@/stores/chatRoom'; |
| | | let state = reactive({ |
| | | applicationScenarios: [], |
| | | scenariosIds: [], |
| | |
| | | } |
| | | }); |
| | | state.applicationScenarios = result; |
| | | sectionAList.value = sceneGroupList.value; |
| | | result?.[0] && changeScenarios(result[0]); |
| | | }; |
| | | const groupedArray = computed(() => { |
| | |
| | | } |
| | | return groups; |
| | | }); |
| | | |
| | | // 查看更多 |
| | | const lookMore = () => { |
| | | router.push({ |
| | | name: 'Scenario', |
| | | query: { |
| | | ID: topGroupId.value, |
| | | }, |
| | | }); |
| | | }; |
| | | watch( |
| | | () => activeGroupType.value, |
| | | () => { |
| | | getMainSectionList(); |
| | | }, |
| | | { immediate: true } |
| | | ); |
| | | defineExpose({ |
| | | getMainSectionList, |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .pc-scenes { |