feat: 解决可能出错的地方

This commit is contained in:
2025-12-16 09:57:07 +08:00
parent bb870644f3
commit 89751eb908

View File

@ -65,7 +65,7 @@
<script setup> <script setup>
import { IdCard } from '@/utils/validate.js' import { IdCard } from '@/utils/validate.js'
import { reactive, ref, getCurrentInstance, watch } from "vue"; import { reactive, ref, getCurrentInstance, watch, defineEmits } from "vue";
import { qcckGet, qcckPost } from "@/api/qcckApi.js"; import { qcckGet, qcckPost } from "@/api/qcckApi.js";
import HolographicArchive from './holographicArchive.vue' import HolographicArchive from './holographicArchive.vue'
import WarningAssignment from './warningAssignment.vue' import WarningAssignment from './warningAssignment.vue'
@ -85,10 +85,10 @@ const props = defineProps({
default: false default: false
} }
}); });
const emit = defineEmits(["plotThetrajectory", "showDetail", 'showFeedback','fkLxOptions']);
watch(() => props.item, (newVal, oldVal) => { watch(() => props.item, (newVal, oldVal) => {
emit('fkLxOptions', newVal); emit('fkLxOptions', newVal);
},{deep:true,immediate:true}) },{deep:true,immediate:true})
const emit = defineEmits(["plotThetrajectory", "showDetail", 'showFeedback','fkLxOptions']);
const showTransfer = (item) => { const showTransfer = (item) => {
router.push({ router.push({