ソースを参照

:tada: 修复用户模块数据加载的bug

smallchill 7 年 前
コミット
6014f0391e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/views/system/user.vue

+ 1 - 1
src/views/system/user.vue

@@ -379,7 +379,7 @@
       beforeOpen(done, type) {
         if (["edit", "view"].includes(type)) {
           getUser(this.form.id).then(res => {
-            this.form = res.data.data;
+            this.form = res.data;
             this.form.deptId = this.form.deptId.split(",");
             this.form.deptId.forEach((ele, index) => {
               this.form.deptId[index] = Number(ele);