@cabloy/vue-runtime-core 3.5.17 → 3.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -7856,7 +7856,11 @@ const setCurrentInstance = (instance) => {
|
|
|
7856
7856
|
internalSetCurrentInstance(instance);
|
|
7857
7857
|
instance.scope.on();
|
|
7858
7858
|
return () => {
|
|
7859
|
-
|
|
7859
|
+
if (prev) {
|
|
7860
|
+
prev.scope.on();
|
|
7861
|
+
} else {
|
|
7862
|
+
instance.scope.off();
|
|
7863
|
+
}
|
|
7860
7864
|
internalSetCurrentInstance(prev);
|
|
7861
7865
|
};
|
|
7862
7866
|
};
|
|
@@ -6334,7 +6334,11 @@ const setCurrentInstance = (instance) => {
|
|
|
6334
6334
|
internalSetCurrentInstance(instance);
|
|
6335
6335
|
instance.scope.on();
|
|
6336
6336
|
return () => {
|
|
6337
|
-
|
|
6337
|
+
if (prev) {
|
|
6338
|
+
prev.scope.on();
|
|
6339
|
+
} else {
|
|
6340
|
+
instance.scope.off();
|
|
6341
|
+
}
|
|
6338
6342
|
internalSetCurrentInstance(prev);
|
|
6339
6343
|
};
|
|
6340
6344
|
};
|
|
@@ -7915,7 +7915,11 @@ const setCurrentInstance = (instance) => {
|
|
|
7915
7915
|
internalSetCurrentInstance(instance);
|
|
7916
7916
|
instance.scope.on();
|
|
7917
7917
|
return () => {
|
|
7918
|
-
|
|
7918
|
+
if (prev) {
|
|
7919
|
+
prev.scope.on();
|
|
7920
|
+
} else {
|
|
7921
|
+
instance.scope.off();
|
|
7922
|
+
}
|
|
7919
7923
|
internalSetCurrentInstance(prev);
|
|
7920
7924
|
};
|
|
7921
7925
|
};
|