YY %!s(int64=2) %!d(string=hai) anos
pai
achega
43e0e89074
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      src/views/platmanag/storeAcc/detail.vue

+ 2 - 5
src/views/platmanag/storeAcc/detail.vue

@@ -166,11 +166,8 @@ export default {
     async searchOthers() {
       let res = await this.roleQuery();
       if (this.$checkRes(res)) {
-        let list = [];
-        for (const p1 of res.data) {
-          if (p1.code != 'sadmin') list.push(p1);
-        }
-        this.$set(this, `roleList`, list);
+        let info = res.data.filter((f) => f.code != 'sadmin');
+        if (info) this.$set(this, `roleList`, info);
       }
     },
     // 返回