From 0b7267194f64a29999369e7587cfbe954622b665 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Fri, 31 Dec 2021 11:57:16 -0800 Subject: [PATCH] doc: import reactive and add state to it --- src/store/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 8b13789..787ec7d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1 +1,9 @@ +import { reactive } from "vue"; +const state = reactive({ + user: null, +}); + +export default { + state, +};