| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <script>
- import { runColdStart, runForeground, runBackground } from '@/core/bootstrap/app-launch'
- import appSettings from '@/core/config/app-settings'
- import { createPushBridge } from '@/features/push/push-bridge'
- import { markAppInBackground } from '@/features/feed/background-playback'
- export default {
- globalData: {
- runtimeConfig: {},
- targetVideoId: '',
- _i18n: {},
- isAndroid: true
- },
- onLaunch() {
- // #ifdef APP-PLUS
- if (appSettings.nativePushEnabled) {
- this.$pushBridge = createPushBridge(this)
- }
- // #endif
- runColdStart(this)
- },
- onShow() {
- markAppInBackground(false)
- runForeground(this)
- },
- onHide() {
- markAppInBackground(true)
- runBackground(this)
- }
- }
- </script>
- <style lang="scss">
- /* #ifndef APP-NVUE */
- @import '@/static/style/app-shell.css';
- @import '@/static/style/base.css';
- @import '@/static/style/colorui.css';
- @import './static/style/baselive.css';
- @import '@/static/style/iconfont.css';
- /* #endif */
- </style>
|