|
@@ -39,8 +39,9 @@ export default new Vuex.Store({
|
|
|
})
|
|
|
.then(res => {
|
|
|
// eslint-disable-next-line
|
|
|
+ console.log(res);
|
|
|
self.userInfo = res;
|
|
|
- if (self.userInfo.avatar.indexOf('odulcd8g1.bkt.clouddn.com')) {
|
|
|
+ if (self.userInfo.avatar.indexOf('odulcd8g1.bkt.clouddn.com') > -1) {
|
|
|
self.userInfo.avatar = self.userInfo.avatar.replace(/odulcd8g1\.bkt\.clouddn\.com/, 'avatar.yiguanjia.me');
|
|
|
}
|
|
|
})
|