From c0e4cec2e441895bc9e9512d21bd9eb19a87b19e Mon Sep 17 00:00:00 2001 From: tycho Date: Wed, 26 Mar 2025 15:32:11 +0800 Subject: [PATCH] docs(computed): correct parameter in computed example --- src/guide/essentials/computed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/essentials/computed.md b/src/guide/essentials/computed.md index ba51483216..a8f0532abf 100644 --- a/src/guide/essentials/computed.md +++ b/src/guide/essentials/computed.md @@ -279,7 +279,7 @@ export default { // This computed will return the value of count when it's less or equal to 3. // When count is >=4, the last value that fulfilled our condition will be returned // instead until count is less or equal to 3 - alwaysSmall(previous) { + alwaysSmall(_, previous) { if (this.count <= 3) { return this.count }