mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 05:07:28 +08:00
refactor: per-request mobile detection
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { isMobile } from '../utils/screen'
|
||||
import { useIsMobile } from '../utils/screen'
|
||||
export default {
|
||||
name: 'NotificationContainer',
|
||||
props: {
|
||||
@@ -21,6 +21,7 @@ export default {
|
||||
markRead: { type: Function, required: true }
|
||||
},
|
||||
setup() {
|
||||
const isMobile = useIsMobile()
|
||||
return {
|
||||
isMobile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user