1
- import Vue from 'vue'
2
- import { computed } from 'vue'
1
+ import { computed , set } from 'vue'
3
2
import { BridgeEvents , setStorage } from '@vue-devtools/shared-utils'
4
3
import { useApps , waitForAppSelect } from '@front/features/apps'
5
4
import { getBridge } from '@front/features/bridge'
@@ -41,7 +40,7 @@ export function getLayers (appId: string) {
41
40
let layers = layersPerApp . value [ appId ]
42
41
if ( ! layers ) {
43
42
layers = [ ]
44
- Vue . set ( layersPerApp . value , appId , layers )
43
+ set ( layersPerApp . value , appId , layers )
45
44
// Read the property again to make it reactive
46
45
layers = layersPerApp . value [ appId ]
47
46
}
@@ -52,7 +51,7 @@ function getHiddenLayers (appId: string) {
52
51
let layers = hiddenLayersPerApp . value [ appId ]
53
52
if ( ! layers ) {
54
53
layers = [ ]
55
- Vue . set ( hiddenLayersPerApp . value , appId , layers )
54
+ set ( hiddenLayersPerApp . value , appId , layers )
56
55
// Read the property again to make it reactive
57
56
layers = hiddenLayersPerApp . value [ appId ]
58
57
}
@@ -108,7 +107,7 @@ export function useLayers () {
108
107
vScroll : computed ( {
109
108
get : ( ) => vScrollPerApp . value [ currentAppId . value ] || 0 ,
110
109
set : ( value : number ) => {
111
- Vue . set ( vScrollPerApp . value , currentAppId . value , value )
110
+ set ( vScrollPerApp . value , currentAppId . value , value )
112
111
} ,
113
112
} ) ,
114
113
isLayerHidden,
0 commit comments