import { getSearchObj } from '@/helpers/location' ; /**
 * 获取语言
 */ export function getLanguage ( ) { const query = getSearchObj ( ) ; const lang = ( query . lang as string ) || 'zh_CN' ; typeof document !== 'undefined' && document . body . setAttribute ( 'lang' , lang ) ; return lang ; }