Skip to content

Commit e0c6fee

Browse files
author
罗国雄
committed
商品页点击收藏处理
1 parent 3dcad85 commit e0c6fee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/router/goodsDetail/index.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ class _GoodsDetail extends State<GoodsDetail> {
156156
Router.push('/login', context, null, () async {
157157
var sq = await SpUtil.getInstance();
158158
final token = sq.getString('token');
159-
print(token);
159+
if (token != null) {
160+
this.getInitData();
161+
}
160162
});
161163
}
162164
},

0 commit comments

Comments
 (0)