Browse Source

fix error msg.

deason 5 years ago
parent
commit
0bbf9eca1d
1 changed files with 2 additions and 2 deletions
  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;
             });