let currentIndex = this.firstCate.findIndex((profile) => profile.id === id); 根据数组中的某个对象的参数值来找到这个对象在数组中的位置