提交源文件

This commit is contained in:
gyq
2024-02-19 09:39:40 +08:00
commit 6bb26dd514
23 changed files with 850 additions and 0 deletions

5
src/store/index.js Normal file
View File

@@ -0,0 +1,5 @@
import { createPinia } from "pinia";
const store = createPinia();
export default store;

13
src/store/user.js Normal file
View File

@@ -0,0 +1,13 @@
import { defineStore } from "pinia";
export const useUserStore = defineStore({
id: "user",
state: () => ({
name: "张三",
token: "sas121sasdADSAD",
}),
actions: {
login(data) {
this.name = data;
},
},
});