Skip to content

Commit

Permalink
fix: remove log, fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Areo-Joe committed Oct 15, 2024
1 parent 288e67c commit b6d148b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions miniprogram/tcb-shop/pages/usercenter/address/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,9 @@ Page({

let action, failedMessage;
if (typeof addressId === 'string') {
console.log('to update');
action = () => updateAddress({ name, address: detailAddress, phone, _id: addressId });
failedMessage = '修改地址失败,请稍候重试';
} else {
console.log('to create');
action = () => createAddress({ name, phone, address: detailAddress });
failedMessage = '添加地址失败,请稍候重试';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@
</view>
</view>
<t-toast id="t-toast" />
<loading-dialog show="{{loading}}" />
<view wx:if="{{loading}}">
<loading-dialog show="{{loading}}" />
</view>

0 comments on commit b6d148b

Please sign in to comment.