enhance: PizzaxデータをindexedDBに保存するように (#9225)
* Revert "Revert #8098"
This reverts commit 8b9dc962ae.
* fix
* use deepClone instead of deepclone
* defaultStore.loaded
* fix load
* wait ready
* use top-level await, await in device-kind.ts
This commit is contained in:
parent
00e3453ce1
commit
8a6f73c5ff
7 changed files with 202 additions and 92 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import { defaultStore } from '@/store';
|
||||
|
||||
await defaultStore.ready;
|
||||
|
||||
const ua = navigator.userAgent.toLowerCase();
|
||||
const isTablet = /ipad/.test(ua) || (/mobile|iphone|android/.test(ua) && window.innerWidth > 700);
|
||||
const isSmartphone = !isTablet && /mobile|iphone|android/.test(ua);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue