first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
State : 用来存放Vuex变量的数据,作用类似于vuex
Getter : 用来读取 State 里面的数据
Mutation : 用来修改 State 里面的数据
Action :
vuex 使用套路:
1: 写数据:Action 执行一个方法,然后把方法运算结果 传递给 Mutation 中的某个方法A,A会直接帮我
向 State 中写入数据
2: 读数据: 调用 Getter里面的方法B,然后B会帮我们读取 State 的数据,并返回给调用者