|
@@ -377,7 +377,8 @@ export default {
|
|
|
uni.setStorageSync('user_account', res.data.data.user_account);
|
|
|
uni.setStorageSync('token', res.data.data.token);
|
|
|
// 修改邀请码
|
|
|
- this.$api.shareActivityCode({shareActivityCode: uni.getStorageSync("sac")}).then(res=>{
|
|
|
+ let sac = uni.getStorageSync("sac")
|
|
|
+ sac&&this.$api.shareActivityCode({shareActivityCode: sac}).then(res=>{
|
|
|
if (res.data.code == 200) {
|
|
|
uni.removeStorageSync("sac");
|
|
|
}
|