From 023b4e34f5268831abd190790394d93543253c2b Mon Sep 17 00:00:00 2001 From: qiangyanwen <508737091@qq.com> Date: Sun, 14 Aug 2022 16:36:13 +0800 Subject: [PATCH] testcase --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 7823b91..a77238c 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,14 +3,16 @@ import {defineStore} from "pinia"; const useStore = defineStore("mon",{ state(){ return { - username: "乔文章" + username: "" } }, + //触发动作 actions:{ Update(username){ this.username = username } }, + //持久化存储,默认存储全部的数据 persist: { enabled: true, strategies: [{