1
YM
5 天以前 294863a578999bbc237090710f17364c27555b56
src/views/Start.vue
@@ -80,12 +80,35 @@
  </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'
  // const router = useRouter()
  // const inputValue = ref('')
  // const handleChat = () => {
  //   router.push('/chat')
  // }
</script>
<style lang="less" scoped>
  @media screen and (max-width: 750px) {