shish 1 год назад
Родитель
Сommit
8ce6451f50
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      mallApp/src/mixins/globalMixins.js

+ 4 - 0
mallApp/src/mixins/globalMixins.js

@@ -47,9 +47,13 @@ export default {
 
 		if (option.account) {
 			uni.setStorageSync('account', option.account)
+		}else{
+			uni.setStorageSync('account', 0)
 		}
 		if (option.hdId) {
 			uni.setStorageSync('hdId', option.hdId)
+		}else{
+			uni.setStorageSync('hdId', 0)
 		}
 
 		uni.setStorageSync('currentQuery', JSON.stringify(option))