添加了预览模式开关
Signed-off-by: EricXuan <eric@litpo.com>