fix: 无法判断出是ipad的情况
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | 模板设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
use Detection\MobileDetect;
|
||||
|
||||
$detect = new MobileDetect();
|
||||
$view_device_name = 'pc';
|
||||
if (request()->isMobile()) {
|
||||
if ($detect->isMobile() || $detect->isTablet()) {
|
||||
$view_device_name = 'mobile';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user