feat: request && login && router【e6939e22】(增加 login.vue 的租户选择、开启开关)

This commit is contained in:
YunaiV
2025-03-22 09:38:38 +08:00
parent c2358e2132
commit c2914d2002
4 changed files with 33 additions and 19 deletions

View File

@@ -11,12 +11,15 @@ interface Props {
class?: any;
options?: Array<{ label: string; value: string }>;
placeholder?: string;
enable?: boolean;
}
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
enable: true,
});
</script>
<template>
<Select>
<Select v-if="enable">
<SelectTrigger :class="props.class">
<SelectValue :placeholder="placeholder" />
</SelectTrigger>