gitea push
This commit is contained in:
+18
-8
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/reactivity v3.5.33
|
||||
* @vue/reactivity v3.5.34
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -82,12 +82,18 @@ class EffectScope {
|
||||
*/
|
||||
this.cleanups = [];
|
||||
this._isPaused = false;
|
||||
this._warnOnRun = true;
|
||||
this.__v_skip = true;
|
||||
this.parent = activeEffectScope;
|
||||
if (!detached && activeEffectScope) {
|
||||
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
||||
this
|
||||
) - 1;
|
||||
if (activeEffectScope.active) {
|
||||
this.parent = activeEffectScope;
|
||||
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
||||
this
|
||||
) - 1;
|
||||
} else {
|
||||
this._active = false;
|
||||
this._warnOnRun = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
get active() {
|
||||
@@ -135,7 +141,7 @@ class EffectScope {
|
||||
} finally {
|
||||
activeEffectScope = currentEffectScope;
|
||||
}
|
||||
} else {
|
||||
} else if (this._warnOnRun) {
|
||||
warn(`cannot run an inactive effect scope.`);
|
||||
}
|
||||
}
|
||||
@@ -259,8 +265,12 @@ class ReactiveEffect {
|
||||
*/
|
||||
this.cleanup = void 0;
|
||||
this.scheduler = void 0;
|
||||
if (activeEffectScope && activeEffectScope.active) {
|
||||
activeEffectScope.effects.push(this);
|
||||
if (activeEffectScope) {
|
||||
if (activeEffectScope.active) {
|
||||
activeEffectScope.effects.push(this);
|
||||
} else {
|
||||
this.flags &= -2;
|
||||
}
|
||||
}
|
||||
}
|
||||
pause() {
|
||||
|
||||
Reference in New Issue
Block a user