| | |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { ref } from 'vue' |
| | | import { ref, inject } from 'vue' |
| | | const request = inject('request') |
| | | const inputValue = ref('') |
| | | |
| | | const sendMsg = () => { |
| | | |
| | | console.log(inputValue.value); |
| | | request({ |
| | | url: '/chat-messages', |
| | | method: 'post', |
| | | data: { |
| | | query: inputValue.value, |
| | | inputs: {}, |
| | | response_mode: "blocking", |
| | | user: "test", |
| | | files: [] |
| | | } |
| | | }).then(res => { |
| | | console.log(res, "res"); |
| | | }) |
| | | } |
| | | // import { ref } from 'vue' |
| | | // import { useRouter } from 'vue-router' |
| | | // import { ref } from 'vue' |
| | | // import { useRouter } from 'vue-router' |
| | | |
| | | // const router = useRouter() |
| | | // const inputValue = ref('') |
| | | // const router = useRouter() |
| | | // const inputValue = ref('') |
| | | |
| | | // const handleChat = () => { |
| | | // router.push('/chat') |
| | | // } |
| | | // const handleChat = () => { |
| | | // router.push('/chat') |
| | | // } |
| | | </script> |
| | | <style lang="less" scoped> |
| | | @media screen and (max-width: 750px) { |