Explorar el Código

fix error msg.

deason hace 5 años
padre
commit
0bbf9eca1d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
             });