If you resign during the probation period, you can't leave immediately. You can leave only three days later. According to the law, if you resign during the probation period, you should submit it three days in advance and pay your salary; Moreover, employers cannot deduct their wages. If employers deduct their wages without reason, workers can complain to the local labor supervision department or apply for labor arbitration.
Labor Contract Law of the People's Republic of China
Article 37 A worker may terminate his labor contract by giving a written notice to the employing unit 30 days in advance. The laborer may terminate the labor contract by notifying the employing unit three days in advance during the probation period.