Explorar el Código

fix: fix incorrect env

daiwei hace 3 meses
padre
commit
d31b7162b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/runtime-core/src/components/KeepAlive.ts

+ 1 - 1
packages/runtime-core/src/components/KeepAlive.ts

@@ -189,7 +189,7 @@ const KeepAliveImpl: ComponentOptions = {
       }
 
       // for e2e test
-      if (__DEV__ && __BROWSER__) {
+      if (__DEV__ && __GLOBAL__) {
         ;(instance as any).__keepAliveStorageContainer = storageContainer
       }
     }