update:动态获取设备工具列表并优化显示逻辑

This commit is contained in:
3030332422
2025-09-17 16:25:46 +08:00
parent 44e7380c6b
commit 31e84dadd1
3 changed files with 127 additions and 60 deletions
@@ -64,7 +64,7 @@
<el-button size="mini" type="text" @click="handleUnbind(scope.row.device_id)">
{{ $t('device.unbind') }}
</el-button>
<el-button size="mini" type="text" @click="handleMcpToolCall(scope.row.device_id)">
<el-button v-if="scope.row.deviceStatus === 'online'" size="mini" type="text" @click="handleMcpToolCall(scope.row.device_id)">
{{ $t('device.toolCall') }}
</el-button>
</template>