Эх сурвалжийг харах

个人中心-修改用户资料

vera_min 2 жил өмнө
parent
commit
d6633cf169

+ 8 - 2
src/views/personal/index.vue

@@ -105,8 +105,14 @@ import uploadVue from '/@/components/upload-wrapper/index.vue';
 const info = ref<any>({})
 const isEditStatus = ref<Boolean>(true);
 
-api.login.currentUser().then((res: any) => {
-  info.value = res.Info
+// api.login.currentUser().then((res: any) => {
+//   info.value = res.Info
+//   			// api.user.detail(localStorage.userId).then((user: any) => {
+// 			// 		state.ruleForm = user;
+// 			// 	});
+// });
+api.user.detail(localStorage.userId).then((user: any) => {
+	info.value = user;
 });
 
 // 当前时间提示语