mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
【优化】优化验证本地是否存在缓存用户数据的判断规则
This commit is contained in:
@@ -196,8 +196,7 @@
|
|||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
var userInfo = this.$store.state.userInfo;
|
var userInfo = this.$store.state.userInfo;
|
||||||
//var token = this.$db.get('userToken');
|
//var token = this.$db.get('userToken');
|
||||||
//if (Object.keys(userInfo).length != 0) {
|
if (Object.keys(userInfo).length != 0) {
|
||||||
if (userInfo) {
|
|
||||||
//console.log("获取到store.state用户数据");
|
//console.log("获取到store.state用户数据");
|
||||||
} else {
|
} else {
|
||||||
_this.$store.commit('userInfo', "");
|
_this.$store.commit('userInfo', "");
|
||||||
|
|||||||
Reference in New Issue
Block a user