File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 <router-view />
77 </div >
88 <div class =" right-panel" :class =" { collapsed: !showTinyRobot }" >
9- <tiny-robot-chat v-if =" route.query.dialog !== 'ant' " />
10- <ant-design-x v-if = " route.query.dialog === 'ant' " />
9+ <tiny-robot-chat v-if =" !isAntDesignX " />
10+ <ant-design-x v-else />
1111 </div >
1212 <IconAi @click =" showTinyRobot = !showTinyRobot" class =" style-settings-icon" ></IconAi >
1313 <tiny-dialog-box
@@ -47,10 +47,9 @@ import { IconAi } from '@opentiny/tiny-robot-svgs'
4747import { provide , reactive , ref } from ' vue'
4848import { $local , isEnvLLMDefined , isLocalLLMDefined } from ' ./composable/utils'
4949import { createMessageChannelServerTransport } from ' @opentiny/next-sdk'
50- import { useRoute } from ' vue-router' // 导入useRoute来获取路由信息
5150
5251// 获取当前路由信息
53- const route = useRoute ( )
52+ const isAntDesignX = location . href . includes ( ' ant ' )
5453
5554const boxVisibility = ref (false )
5655const formRef = ref ()
You can’t perform that action at this time.
0 commit comments