Explorar o código

切换角色,清空用户列表

gangyj %!s(int64=3) %!d(string=hai) anos
pai
achega
c49e721c6b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/manager/contractinfo/detail.vue

+ 1 - 0
src/views/manager/contractinfo/detail.vue

@@ -701,6 +701,7 @@ export default {
     rId: function () {
       this.postIdss = ''
       this.postId = ''
+      this.contractUserList = [];//从超级管理员,切到其他角色,不会清空列表
       this.roleList.forEach(val => {
         if (val.id === this.rId) {
           if (val.children) {