Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-23 13:51:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ee992f370bdd6e10ba243b1b34b33af0a3d11254
ee992f37
1 parent
eb690c70
fix: 提交评价时为空内容添加提示
当评价内容为空时,调用 showToast 提示用户输入,改善用户体验。
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/courses/ReviewPopup.vue
src/components/courses/ReviewPopup.vue
View file @
ee992f3
...
...
@@ -20,7 +20,7 @@
<script setup>
import { ref, watch } from 'vue'
import { Popup, Rate, Field, Button } from 'vant'
import { Popup, Rate, Field, Button
, showToast
} from 'vant'
const props = defineProps({
show: {
...
...
@@ -62,6 +62,7 @@ const handleSubmit = () => {
return
}
if (!note.value.trim()) {
showToast('请输入评价内容')
return
}
emit('submit', {
...
...
Please
register
or
login
to post a comment