From 0206229e15b2c6cbe0b71042bf57ac70ea5f12b8 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Thu, 12 May 2022 16:37:59 +0800 Subject: [PATCH] 登陆 --- common/common.js | 2 +- pages/index/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/common.js b/common/common.js index 0c46f8e..d7fabaa 100644 --- a/common/common.js +++ b/common/common.js @@ -31,7 +31,7 @@ const useraboutUs = serverUrl + "/business/h5/index/aboutUs"; // const requestSign = function(inputData) { - var jsonList = inputData; + var jsonList = inputData || {}; jsonList.sign_type = "md5"; jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104"; jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"; diff --git a/pages/index/index.vue b/pages/index/index.vue index 9187036..f540125 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -136,7 +136,7 @@ // 登陆成功 展示首页 that.userIsLogin = false; - + // 首页信息获取 接口 that.$myRequest({ url:that.$common.indexInfo, @@ -146,7 +146,7 @@ console.log(res) var indexInfo = res.data; console.log(indexInfo) - that.userName=indexInfo.indexInfo; + that.userName=indexInfo.userName; -- libgit2 0.21.4