|
@@ -41,11 +41,16 @@ export default defineComponent({
|
|
|
commentRemind: true
|
|
|
});
|
|
|
const onSubmit = async () => {
|
|
|
- // const isCommentRemind = storage.get('isCommentRemind');
|
|
|
- // if (isCommentRemind != 1) {
|
|
|
- // state.removeVisiable1 = true;
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ const isCommentRemind = storage.get('isCommentRemind');
|
|
|
+ if (isCommentRemind != 1) {
|
|
|
+ state.removeVisiable1 = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!state.comment) {
|
|
|
+ message.error('请输入评语');
|
|
|
+ return;
|
|
|
+ }
|
|
|
state.btnLoading = true;
|
|
|
try {
|
|
|
await api_setComment({
|