Commit 3c0c6cba authored by nick zheng's avatar nick zheng

fix: 未创建应用时多模型调试按钮显示且禁用

parent 9d58a803
...@@ -89,6 +89,8 @@ function handleUpdateContinueQuestionStatus(status: 'default' | 'close') { ...@@ -89,6 +89,8 @@ function handleUpdateContinueQuestionStatus(status: 'default' | 'close') {
} }
function handleTurnMultiModelDialogue() { function handleTurnMultiModelDialogue() {
if (!personalAppConfigStore.baseInfo.agentId) return
router.push({ router.push({
name: 'MultiModelDialogue', name: 'MultiModelDialogue',
params: { params: {
...@@ -113,8 +115,11 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) { ...@@ -113,8 +115,11 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) {
<div class="flex items-center"> <div class="flex items-center">
<div <div
v-show="personalAppConfigStore.baseInfo.agentId" :class="
class="text-font-color hover:text-theme-color cursor-pointer" personalAppConfigStore.baseInfo.agentId
? 'text-font-color hover:text-theme-color cursor-pointer'
: 'text-gray-font-color cursor-not-allowed'
"
@click="handleTurnMultiModelDialogue" @click="handleTurnMultiModelDialogue"
> >
<i class="iconfont icon-moxing mr-1 text-sm" /> <i class="iconfont icon-moxing mr-1 text-sm" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment