判断modal状态