Can you go on vacation and leave state with child having joint custody in Illinois?

That depends on the provisions of the original custody/visitation order and/or whether or not such a vacation would interfere with the other parent's court ordered visitation schedule or parenting time. Otherwise, you would need to obtain permission from the other parent or the court before you proceed.

Refer to your court documents or consult an attorney for more information.