guhongwei před 4 roky
rodič
revize
a53da8b62f

+ 0 - 5
src/views/adminCenter/user/detail.vue

@@ -54,10 +54,7 @@ export default {
     async searchInfo() {
       if (this.role == '2' || this.role == '3' || this.role == '7') {
         let res = await this.fetch(this.id);
-        console.log(res.data);
-
         if (res.errcode === 0) {
-          console.log(res.data);
           this.$set(this, `form`, res.data);
         }
       } else if (this.role == '6') {
@@ -71,8 +68,6 @@ export default {
       if (data.role == '2' || data.role == '3' || data.role == '7') {
         let res;
         let msg;
-        console.log(data);
-
         if (data.id) {
           res = await this.update(data);
           this.$message({

+ 0 - 2
src/views/adminCenter/user/parts/userlist.vue

@@ -69,11 +69,9 @@ export default {
     async submit(item) {
       this.$router.push({ path: './detail', query: { id: item.id, role: item.role } });
     },
-
     usersubmit() {
       this.$router.push({ path: './detail' });
     },
-
     async toDelete(item) {
       const res = await this.delete(item.id);
       if (this.$checkRes(res, '删除成功', res.errmsg || '删除失败')) this.search();