guhongwei 2 年 前
コミット
137f098cf5

+ 3 - 0
.history/src/stores/user/mutations_20230317143857.ts

@@ -0,0 +1,3 @@
+export const setUser = (state: { user: { role_type: string; lab_id: string } }, payload: { role_type: string; lab_id: string }) => {
+  state.user = payload;
+};

+ 5 - 0
.history/src/stores/user/mutations_20230317150756.ts

@@ -0,0 +1,5 @@
+export const setUser = (state: { user: { role_type: string; lab_id: string } }, payload: { role_type: string; lab_id: string }) => {
+  console.log(payload);
+
+  // state.user = payload;
+};

+ 4 - 0
.history/src/stores/user/mutations_20230317150757.ts

@@ -0,0 +1,4 @@
+export const setUser = (state: { user: { role_type: string; lab_id: string } }, payload: { role_type: string; lab_id: string }) => {
+  console.log(payload);
+  // state.user = payload;
+};

+ 3 - 0
.history/src/stores/user/mutations_20230317150805.ts

@@ -0,0 +1,3 @@
+export const setUser = (state: { user: { role_type: string; lab_id: string } }, payload: { role_type: string; lab_id: string }) => {
+  state.user = payload;
+};