fix: 周计划-创建-取消获取当前用户信息

This commit is contained in:
wangzhuo
2025-09-12 16:54:04 +08:00
parent 1f8245ab2c
commit 19fa062229

View File

@@ -130,12 +130,12 @@ let instance = null;
let initCreate = (params)=>{ let initCreate = (params)=>{
const {itemList, selectIndex} = params; const {itemList, selectIndex} = params;
// 获取用户信息 // 获取用户信息
getUserInfo().then(res => { // getUserInfo().then(res => {
userInfo.value = res.user; // userInfo.value = res.user;
console.log(route.path, ":用户信息获取成功"); // console.log(route.path, ":用户信息获取成功");
}).catch(err => { // }).catch(err => {
console.warn(err, "用户信息获取失败") // console.warn(err, "用户信息获取失败")
}); // });
console.log(route.path,`:创建${itemList[selectIndex]}计划`); console.log(route.path,`:创建${itemList[selectIndex]}计划`);
title.value="创建周计划"; title.value="创建周计划";
currentEditDate.value.yearMonth = getDate({format: true}).substring(0, 7); // 只要年月 currentEditDate.value.yearMonth = getDate({format: true}).substring(0, 7); // 只要年月