fix path params
This commit is contained in:
parent
f44bbbe7d4
commit
4e1fbeefea
@ -4,17 +4,17 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
const client = ref({});
|
const client = ref({});
|
||||||
defineProps({
|
const { clientName } = defineProps({
|
||||||
clientId: String,
|
clientName: { type: String, required: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (clientId === "new") {
|
if (clientName === "new") {
|
||||||
// Logic for creating a new client
|
// Logic for creating a new client
|
||||||
console.log("Creating a new client");
|
console.log("Creating a new client");
|
||||||
} else {
|
} else {
|
||||||
// Logic for fetching and displaying existing client data
|
// 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>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user