|
@@ -166,11 +166,8 @@ export default {
|
|
async searchOthers() {
|
|
async searchOthers() {
|
|
let res = await this.roleQuery();
|
|
let res = await this.roleQuery();
|
|
if (this.$checkRes(res)) {
|
|
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);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|