YY пре 2 година
родитељ
комит
43e0e89074
1 измењених фајлова са 2 додато и 5 уклоњено
  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);
       }
     },
     // 返回