feat: 格式化代码

This commit is contained in:
2025-08-27 18:37:50 +08:00
parent 9de068e7fc
commit 0e51fdcd69
21 changed files with 1502 additions and 1522 deletions

View File

@@ -12,32 +12,31 @@
</template>
<script setup>
import { ref, nextTick, defineEmits } from 'vue'
import { onMounted } from 'vue'
import { SCROLL_TO_BOTTOM } from '@/constant/constant'
import { ref, nextTick, defineEmits } from "vue";
import { onMounted } from "vue";
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
const props = defineProps({
question: {
type: String,
default: ''
}
})
default: "",
},
});
const tags = ref([])
const emits = defineEmits(['replySent']);
const tags = ref([]);
const emits = defineEmits(["replySent"]);
const handleClick = (item) => {
emits('replySent', item)
}
emits("replySent", item);
};
onMounted(() => {
tags.value = props.question.split(/[&|;]/).filter(tag => tag.trim() !== '')
nextTick(() => {
setTimeout(() => {
uni.$emit(SCROLL_TO_BOTTOM, true)
}, 300)
});
})
tags.value = props.question.split(/[&|;]/).filter((tag) => tag.trim() !== "");
nextTick(() => {
setTimeout(() => {
uni.$emit(SCROLL_TO_BOTTOM, true);
}, 300);
});
});
</script>
<style scoped lang="scss">
@@ -59,7 +58,7 @@ onMounted(() => {
}
.tag-text {
color: #00A6FF; /* 蓝色文字,可根据设计调整 */
color: #00a6ff; /* 蓝色文字,可根据设计调整 */
font-size: 14px;
}
</style>