fix path params

This commit is contained in:
Casey Wittrock 2025-11-11 11:43:04 -06:00
parent f44bbbe7d4
commit 4e1fbeefea

View File

@ -4,17 +4,17 @@
<script setup>
import { onMounted, ref } from "vue";
const client = ref({});
defineProps({
clientId: String,
const { clientName } = defineProps({
clientName: { type: String, required: true },
});
onMounted(() => {
if (clientId === "new") {
if (clientName === "new") {
// Logic for creating a new client
console.log("Creating a new client");
} else {
// Logic for fetching and displaying existing client data
console.log("Fetching data for client ID:", clientId);
console.log("Fetching data for client ID:", clientName);
}
});
</script>