Explorar el Código

管理员编辑界面bug修复。

tomatozq hace 5 años
padre
commit
2b26c4c754
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/views/sys/user-detail.vue

+ 3 - 3
src/views/sys/user-detail.vue

@@ -86,7 +86,7 @@ export default {
     handleSubmit() {
       var self = this;
 
-      this.$refs["form"].validate(valid => {
+      self.$refs["form"].validate(valid => {
         if (valid) {
           (function() {
             var id = self.formModel.id;
@@ -105,14 +105,14 @@ export default {
                 type: "success"
               });
 
-              this.$emit("close", true);
+              self.$emit("close", true);
             } else {
               self.$message({
                 message: jsonData.message + "",
                 type: "warning"
               });
 
-              this.$emit("close", false);
+              self.$emit("close", false);
             }
           });
         }