소스 검색

fix error msg.

deason 5 년 전
부모
커밋
0bbf9eca1d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/modules/questions/views/ImportPaper.vue

+ 2 - 2
src/modules/questions/views/ImportPaper.vue

@@ -593,10 +593,10 @@ export default {
               this.copyPaperDialog = false;
               this.searchImportPaper();
             })
-            .catch(() => {
+            .catch(error => {
               this.$notify({
                 type: "error",
-                message: "试卷名称重复,请重新命名"
+                message: error.response.data.msg
               });
               this.cloneLoading = false;
             });