mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-28 16:01:00 +00:00
fix: set TensorRT LLM menu visibility (#10693)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user