แก้รับค่า systemName จาก query

This commit is contained in:
Net 2024-07-15 17:00:04 +07:00
parent 6c65feb79f
commit 06c76a865c

View file

@ -1,9 +1,11 @@
<script setup lang="ts">
import { cloneVNode, ref } from "vue";
import { cloneVNode, onMounted, ref } from "vue";
import type { QTableProps } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import { useDataStore } from "@/modules/03_logs/stores/main";
import { storeToRefs } from "pinia";
import { useRoute } from "vue-router";
const route = useRoute();
/** importStore*/
const storeData = useDataStore();
@ -149,6 +151,10 @@ function selectedDate() {
true
);
}
onMounted(() => {
systemName.value = route.query.system as string;
});
</script>
<template>