If you put your vape in your carry-on luggage, you may be asked to take it out for inspection when going through security.
The specific situation will also be determined according to airport regulations and security requirements. Some airports may require your vape to be carried in your carry-on bag for inspection at security. Some airports may require you to put your vape in your hand luggage to check it in before boarding the plane.
In short, before putting your vape in your carry-on luggage, it is best to understand the regulations and requirements of the airport to avoid unnecessary trouble.