/** * 判断是否为浏览器环境 * @returns {Boolean} */ export default function isBrowser (): boolean { return typeof window !== 'undefined'; }