ソースを参照

Fix错误提示

deason 5 年 前
コミット
88e4e2f865

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

@@ -449,10 +449,10 @@ export default {
               this.coursePropertyDialog = false;
               this.searchCourProperty();
             })
-            .catch(() => {
+            .catch(error => {
               this.$notify({
                 type: "error",
-                message: "课程属性名称重复,请重新命名"
+                message: error.response.data.desc
               });
             });
         } else {

+ 4 - 4
src/modules/questions/views/PropertyInfo.vue

@@ -324,10 +324,10 @@ export default {
             this.propertyDialog = false;
             this.searchProperty();
           })
-          .catch(() => {
+          .catch(error => {
             this.$notify({
               type: "error",
-              message: "名称重复,请重新命名"
+              message: error.response.data.desc
             });
           });
       } else {
@@ -341,10 +341,10 @@ export default {
             this.propertyDialog = false;
             this.searchProperty();
           })
-          .catch(() => {
+          .catch(error => {
             this.$notify({
               type: "error",
-              message: "名称重复,请重新命名"
+              message: error.response.data.desc
             });
           });
       }