/** * 组件方法调用超过两次以上 */ export default { data(){ return { 'noticeUsername': [] }; }, 'methods':{ async getListsUsname(username = '') { /** * 获取用户信息 */ this.deleteList = []; let datas = { 'params': { 'pageSize': 100000, 'pageNo': 1, 'username': username, 'ssex': '', 'status': '' } }; let response = await this.getTableData(datas, this.nozzle.userList); if (response.data.code === 200) { this.noticeUsername = response.data ? response.data.data.list : []; } } } };