From fa53e0f0583091bdc8aef66311fc5333659f012b Mon Sep 17 00:00:00 2001 From: ch Date: Tue, 12 Jul 2022 10:58:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 499b369..0fbc4b5 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-07-08 11:46:30 * @LastEditors: ch - * @LastEditTime: 2022-07-12 10:55:29 + * @LastEditTime: 2022-07-12 10:57:40 * @Description: file content */ @@ -17,7 +17,7 @@ import '@/common/utils/uniUtilsIndex' const ua = navigator ? navigator.userAgent.toLowerCase() : ''; if (ua.includes('micromessenger')) { - const openId = localStorage.getItem('openId'); + const openId = localStorage.getItem('payOpenId'); if (!openId) { let query = FormatSearchJson(window.location.search); @@ -32,7 +32,7 @@ if (ua.includes('micromessenger')) { // uni.$u.toast(error.message); return false; } - store.commit('SET_OPEN_ID', result.openId); + localStorage.setItem('payOpenId', result.openId); }) } else {