fix: set TensorRT LLM menu visibility (#10693)

This commit is contained in:
ssongliu
2025-10-20 12:01:40 +08:00
committed by GitHub
parent e667477f4b
commit 79d9d9dfc2
+9
View File
@@ -8,6 +8,9 @@
</template>
<script lang="ts" setup>
import { useGlobalStore } from '@/composables/useGlobalStore';
const { isFxplay } = useGlobalStore();
const buttons = [
{
label: 'Ollama',
@@ -18,4 +21,10 @@ const buttons = [
path: '/ai/model/tensorrt',
},
];
onMounted(() => {
if (!isFxplay.value) {
buttons.splice(1, 1);
}
});
</script>