/** * 判断是否为移动端 * @returns {Boolean} true为移动端 */ export function useUsingMobile() { const isUsingMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent); return isUsingMobile; }