|
@@ -59,7 +59,6 @@
|
|
|
this.globalData.projectId = projectId||'';
|
|
|
this.globalData.shareToken = shareToken||'';
|
|
|
if (!token||!userId) {
|
|
|
- this.globalData.userId = userId;
|
|
|
this.regist();
|
|
|
} else {
|
|
|
this.globalData.token = token;
|
|
@@ -90,7 +89,7 @@
|
|
|
});
|
|
|
if (ret.data.success) {
|
|
|
let userId = ret.data.single.userId;
|
|
|
- this.$cache.set("_user_id",userId,0);
|
|
|
+ this.$cache.set("_user_id",userId);
|
|
|
this.globalData.userId = userId;
|
|
|
if (ret.data.single.authed == 1) {
|
|
|
let token = ret.data.single.token;
|