清理 console.log 过多个人信息

pull/32/MERGE
YunaiV 2023-12-25 23:42:06 +08:00
parent 6f2455fec3
commit afa7220f58
2 changed files with 6 additions and 6 deletions

View File

@ -245,16 +245,16 @@
state.model.avatar = data; state.model.avatar = data;
} }
// TODO //
function onSetPassword() { function onSetPassword() {
showAuthModal('changePassword'); showAuthModal('changePassword');
} }
// TODO //
async function bindThirdOauth() { async function bindThirdOauth() {
let result = await sheep.$platform.useProvider('wechat').bind(); let result = await sheep.$platform.useProvider('wechat').bind();
if (result) { if (result) {
getUserInfo(); await getUserInfo();
} }
} }

View File

@ -68,7 +68,7 @@ const user = defineStore({
if (code !== 0 || code2 != 0) return; if (code !== 0 || code2 != 0) return;
data.money = data2.balance; data.money = data2.balance;
this.userInfo = data; this.userInfo = data;
console.log(data2, '信息') // console.log(data2, '信息')
return Promise.resolve(data); return Promise.resolve(data);
}, },
@ -91,9 +91,9 @@ const user = defineStore({
} = await userApi.data(); } = await userApi.data();
const data2 = await userApi.data2(); const data2 = await userApi.data2();
let data3 = await userApi.getUnused(); let data3 = await userApi.getUnused();
console.log(data3.data, '优惠券') // console.log(data3.data, '优惠券')
if (code === 0 && data2.code === 0) { if (code === 0 && data2.code === 0) {
console.log('订单数据', data); // console.log('订单数据', data);
this.numData = { this.numData = {
coupons_num: data3.data, coupons_num: data3.data,
order_num: { order_num: {