From 08e9a67dd679f311e79a27b04cd0c53a30b4bccf Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 04 六月 2026 18:33:22 +0800
Subject: [PATCH] aaa
---
h5/pages/login/login.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/h5/pages/login/login.vue b/h5/pages/login/login.vue
index 2eb63c9..5fa4396 100644
--- a/h5/pages/login/login.vue
+++ b/h5/pages/login/login.vue
@@ -26,7 +26,7 @@
<script>
import { loginH5, getByLogin, getUserInfo } from '@/apis/index.js'
-
+ import { getAnchorHomePath, normalizeAnchorPageVersion } from '@/utils/anchorHome.js'
export default {
data() {
return {
@@ -49,9 +49,11 @@
let user = await getUserInfo()
this.$store.commit('setUser', user.data)
let result = await getByLogin()
- this.$store.commit('setConfig', result.data)
+ const config = result.data || result
+ this.$store.commit('setConfig', config)
uni.showToast({ title: '鐧诲綍鎴愬姛', icon: 'success', duration: 2000 });
- uni.redirectTo({ url: '/pages/index_2/index' });
+ const homePath = getAnchorHomePath(normalizeAnchorPageVersion(config.anchorPageVersion))
+ uni.redirectTo({ url: homePath });
})
}
}
--
Gitblit v1.9.3