template client page
This commit is contained in:
parent
df1df3f882
commit
f44bbbe7d4
3 changed files with 16 additions and 4 deletions
|
|
@ -2,8 +2,20 @@
|
|||
<div>{{ clientId }}</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { onMounted, ref } from "vue";
|
||||
const client = ref({});
|
||||
defineProps({
|
||||
clientId: String,
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (clientId === "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);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style lang="css"></style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue