no message

This commit is contained in:
setthawutttty 2023-12-01 13:50:47 +07:00
parent 62ad5673c6
commit d47ef4efee
2 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, computed, watchEffect, onMounted } from "vue";
import { ref, computed, watchEffect, onMounted, watch } from "vue";
import { useQuasar } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import type { QTableProps } from "quasar";
@ -119,6 +119,7 @@ const columns2 = ref<QTableProps["columns"]>([
]);
const props = defineProps({
data:Array,
Modal: Boolean,
closeModal: Function,
getData: Function,
@ -209,8 +210,15 @@ watchEffect(() => {
}
});
watch(()=>props.data,()=>{
if(props.data){
const data = props.data.persons
console.log(data)
}
})
onMounted(async () => {
await fecthTypeOption();
});
</script>
<template>

View file

@ -28,15 +28,6 @@ const route = useRoute();
const id = ref<string>(route.params.id as string);
const type = ref<string>("");
/** ข้อมูล v-model ของฟอร์ม */
const data = reactive<FormData>({
detail: "",
});
/** จำลองข้อมูลจาก api */
const fetchData = async () => {
data.detail = "";
};
/**
* นทกขอมลทเเกไข
@ -331,6 +322,7 @@ watch(
v-model:Modal="modal"
:closeModal="closeModal"
:rows2="[]"
:data="dataResult"
v-model:filterKeyword2="filterKeyword"
:getData="getData"
v-model:type="type"