瀏覽代碼

修改详情页面

wangxy 2 月之前
父節點
當前提交
9d9c40d7f4
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      components/goLogin/goLogin.vue

+ 5 - 5
components/goLogin/goLogin.vue

@@ -202,11 +202,11 @@
 		}
     telBind(req).then(res => {
 			if (res.code == 0 && res.data) {
-				const auth = cacheManager.get('auth');
-				auth.userName = loginData.phoneNumber;
-				// 更新用户信息
-				cacheManager.set('auth', auth)
-				// 返回重新支付
+        cacheManager.updateObject('auth', {
+          userName: loginData.phoneNumber
+        })
+        const auth = cacheManager.get('auth');
+        // 返回重新支付
 				handleBack();
 				emits('success', auth)
 			}