فهرست منبع

设置默认值

shish 1 سال پیش
والد
کامیت
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))