feat; 发送的消息类型的统一

This commit is contained in:
2025-10-16 20:19:43 +08:00
parent 1f590202a8
commit d9287b47fa
8 changed files with 31 additions and 30 deletions

View File

@@ -12,9 +12,12 @@
</template>
<script setup>
import { ref, nextTick, defineEmits } from "vue";
import { ref, nextTick } from "vue";
import { onMounted } from "vue";
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
import {
SCROLL_TO_BOTTOM,
SEND_MESSAGE_CONTENT_TEXT,
} from "@/constant/constant";
const props = defineProps({
question: {
@@ -24,10 +27,9 @@ const props = defineProps({
});
const tags = ref([]);
const emits = defineEmits(["replySent"]);
const handleClick = (item) => {
emits("replySent", item);
uni.$emit(SEND_MESSAGE_CONTENT_TEXT, item);
};
onMounted(() => {