Caleb Porzio 3 年之前
父节点
当前提交
bb75ac3011
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/docs/src/en/plugins/persist.md

+ 1 - 1
packages/docs/src/en/plugins/persist.md

@@ -64,7 +64,7 @@ You can wrap any value inside `x-data` with `$persist` like below to persist its
 
 <!-- START_VERBATIM -->
 <div class="demo">
-    <div x-data="{ count: $persist('0').as('yoyo') }">
+    <div x-data="{ count: $persist('0') }">
         <button x-on:click="count++">Increment</button>
         <span x-text="count"></span>
     </div>