diff --git a/dist.zip b/dist.zip index 54568c1da7420b2d6eb69eab2327d65a93ecad91..291f19a7e7789e1080e63d8361e37790180219e7 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/views/study/studyFeedback/add.vue b/src/views/study/studyFeedback/add.vue index 5299f26aa95fec3d852be3a433b9a634f1d388eb..babaf9e0985aff581201bb50d717cc69e619ee77 100644 --- a/src/views/study/studyFeedback/add.vue +++ b/src/views/study/studyFeedback/add.vue @@ -3,11 +3,7 @@
@@ -27,7 +23,7 @@
- 取消 + 清空 提交
@@ -66,13 +62,9 @@ const rules = { backName: [{ required: true, message: '请输入标题', trigger: 'blur' }], backContent: [{ required: true, message: '请输入反馈内容', trigger: 'blur' }] }; -const Cancel = () => { - proxy?.$tab.closePage(proxy?.$route).then(() => { - proxy?.$router.replace({ - path: '/study/studyFeedback' - }); - }); -}; +const clear = () => { + formRef.value & formRef.value.resetFields() +} const submit = () => { formRef.value.validate(async (valid: any) => { if (!valid) return; @@ -83,7 +75,8 @@ const submit = () => { message: '新增成功', type: 'success' }); - Cancel() + clear(); + getLogList() return; } ElNotification({ @@ -96,7 +89,6 @@ const submit = () => { const logList = ref([]); const getLogList = async () => { const res = await getLogs(); - console.log(res.data); logList.value = res.data || [] }; onMounted(() => { diff --git a/src/views/study/studyFeedback/index.vue b/src/views/study/studyFeedback/index.vue index 391a5265dd5c195891ec2ea0d3d116706d86e302..cf40d045b2b0eba47351cfe24a2639d1770c959a 100644 --- a/src/views/study/studyFeedback/index.vue +++ b/src/views/study/studyFeedback/index.vue @@ -18,7 +18,6 @@