1
2
3
4
5
6
7
8
9
10
11
12
13
| const WINDOW_NAMES = ['VUniLeftWindow', 'VUniTopWindow', 'VUniRightWindow']
|
| export function checkInWindows (vm) {
| if (__PLATFORM__ !== 'h5') {
| return false
| }
| while (vm) {
| if (WINDOW_NAMES.indexOf(vm.$options.name) !== -1) {
| return true
| }
| vm = vm.$parent
| }
| }
|
|