From aeadf5dce5646f19ada355b3a35eab4f5b0956a1 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 27 五月 2024 18:34:57 +0800
Subject: [PATCH] ''

---
 h5/App.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/h5/App.vue b/h5/App.vue
index cfca3fb..28cf67f 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -1,4 +1,5 @@
 <script>
+import { wxAuthorize } from '@/api'
 export default {
 	onLaunch: function () {
 		var that = this
@@ -7,15 +8,16 @@
 			let code = ''
 			if (url.indexOf('code=') !== -1) {
 				const query = url.split('?')
-
+				console.log('app-app', url);
 				for (const q of query) {
 					if (q.indexOf('code=') !== -1) {
 						code = q.substring(q.indexOf('code=') + 5, q.length)
 					}
 				}
-				that.$u.api.wxAuthorize({
+				wxAuthorize({
 					code: code
 				}).then(res => {
+					console.log('app_ress', res);
 					if (res.code === 200) {
 						that.$store.commit('setOpenId', res.data.openid)
 						if (res.data.member) {

--
Gitblit v1.9.3