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