export const toThousands = (num) => { if(num==undefined||num==null)return '--'; const options = { style: 'currency', currency: 'CNY', }; return (num).toLocaleString('zh-CN', options) }