Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | ||
| 21 | <script setup> | 21 | <script setup> |
| 22 | import { ref, watch } from 'vue' | 22 | import { ref, watch } from 'vue' |
| 23 | -import { Popup, Rate, Field, Button } from 'vant' | 23 | +import { Popup, Rate, Field, Button, showToast } from 'vant' |
| 24 | 24 | ||
| 25 | const props = defineProps({ | 25 | const props = defineProps({ |
| 26 | show: { | 26 | show: { |
| ... | @@ -62,6 +62,7 @@ const handleSubmit = () => { | ... | @@ -62,6 +62,7 @@ const handleSubmit = () => { |
| 62 | return | 62 | return |
| 63 | } | 63 | } |
| 64 | if (!note.value.trim()) { | 64 | if (!note.value.trim()) { |
| 65 | + showToast('请输入评价内容') | ||
| 65 | return | 66 | return |
| 66 | } | 67 | } |
| 67 | emit('submit', { | 68 | emit('submit', { | ... | ... |
-
Please register or login to post a comment