From ee30abff141ed750288a712fb45e177804594d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=97=8B?= <723607471@qq.com> Date: Wed, 29 Mar 2023 16:32:02 +0800 Subject: [PATCH] =?UTF-8?q?pinia=E7=9A=84=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 12 +++++------- src/store/index.ts | 19 +++++++++++++++++++ src/store/store_name.ts | 4 ++++ 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 src/store/index.ts create mode 100644 src/store/store_name.ts diff --git a/package-lock.json b/package-lock.json index 199f0cd..1888603 100644 --- a/package-lock.json +++ b/package-lock.json @@ -273,6 +273,11 @@ "fastq": "^1.6.0" } }, + "@popperjs/core": { + "version": "npm:@sxzz/popperjs-es@2.11.7", + "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz", + "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" + }, "@rollup/pluginutils": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", @@ -734,13 +739,6 @@ "lodash-unified": "^1.0.2", "memoize-one": "^6.0.0", "normalize-wheel-es": "^1.2.0" - }, - "dependencies": { - "@popperjs/core": { - "version": "npm:@sxzz/popperjs-es@2.11.7", - "resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz", - "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" - } } }, "esbuild": { diff --git a/src/store/index.ts b/src/store/index.ts new file mode 100644 index 0000000..7c5210d --- /dev/null +++ b/src/store/index.ts @@ -0,0 +1,19 @@ +import { defineStore } from "pinia"; +import { Names } from "./store_name"; + +export const useVariableStore = defineStore(Names.TEST, { + state: () => { + return { + + } + }, + + getters: { + + }, + + actions: { + + } + + }) \ No newline at end of file diff --git a/src/store/store_name.ts b/src/store/store_name.ts new file mode 100644 index 0000000..f45d2f1 --- /dev/null +++ b/src/store/store_name.ts @@ -0,0 +1,4 @@ +export const enum Names { + TEST = "TEST" + } + \ No newline at end of file