Explorar o código

fix error.response.data.msg

deason %!s(int64=5) %!d(string=hai) anos
pai
achega
035d59f331
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/modules/questions/views/EditPaper.vue

+ 3 - 2
src/modules/questions/views/EditPaper.vue

@@ -1527,8 +1527,9 @@ export default {
           },
           error => {
             this.$notify({
-              message: error.data.msg,
-              type: "error"
+              message: error.response.data.msg,
+              type: "error",
+              title: "错误"
             });
             this.loading = false;
           }