pull/265/head
xiaojunnuo 2024-11-18 13:43:33 +08:00
parent 26dad399d5
commit c82bb730b2
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ if (props.modelValue == null) {
} }
const emit = defineEmits<{ const emit = defineEmits<{
"update:modelValue": any; "update:modelValue": any;
change: any;
}>(); }>();
const errorMessage = ref<string | null>(null); const errorMessage = ref<string | null>(null);

View File

@ -79,6 +79,7 @@ import CnameVerifyPlan from "./cname-verify-plan.vue";
import psl from "psl"; import psl from "psl";
import { Form } from "ant-design-vue"; import { Form } from "ant-design-vue";
import { DomainsVerifyPlanInput } from "./type"; import { DomainsVerifyPlanInput } from "./type";
import { CnameRecord } from "./api";
defineOptions({ defineOptions({
name: "DomainsVerifyPlanEditor" name: "DomainsVerifyPlanEditor"
}); });

View File

@ -108,6 +108,7 @@ export default defineComponent({
chooseForm.show = false; chooseForm.show = false;
console.log("choose ok:", selectedId.value); console.log("choose ok:", selectedId.value);
refreshTarget(selectedId.value); refreshTarget(selectedId.value);
ctx.emit("change", selectedId.value);
ctx.emit("update:modelValue", selectedId.value); ctx.emit("update:modelValue", selectedId.value);
} }
}); });