This commit is contained in:
parent
cded1c7f50
commit
2140d2b26f
|
@ -11,8 +11,6 @@
|
|||
<!-- <script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js" crossorigin></script> -->
|
||||
<script>
|
||||
// var vConsole = new VConsole();
|
||||
1
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -254,7 +254,7 @@
|
|||
|
||||
|
||||
<div class="c_bottom">
|
||||
<img src="../assets/3.png">
|
||||
<img src="../assets/3.png" >
|
||||
<input v-model="inputText" type="text" placeholder="有问题尽管问我~" @keydown.enter="sendMessage" class="sendinput" />
|
||||
<div class="w_icon">
|
||||
<img src="../assets/4.png" alt="">
|
||||
|
@ -302,7 +302,8 @@ const sendMessage = () => {
|
|||
messages.push({ id: Date.now(), text: inputText.value, isMe: true, type: 'txt' });
|
||||
http.post('/test/main_serve/', { "text": messageValue }).then((res) => {
|
||||
console.log("res", res);
|
||||
var msg = JSON.parse(res.name)
|
||||
// var msg = JSON.parse(res.name)
|
||||
var msg = res.name
|
||||
messages.push({ id: Date.now() + 1, text: msg, isMe: false, type: 'txt' });
|
||||
scollToButtom()
|
||||
}).catch(error => {
|
||||
|
|
Loading…
Reference in New Issue