解决apt上不能横屏的问题
This commit is contained in:
4
App.vue
4
App.vue
@@ -2,7 +2,7 @@
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
plus.navigator.setFullscreen(true);
|
||||
// #endif
|
||||
},
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
onUnload() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user