aaa
doum
2026-06-04 08e9a67dd679f311e79a27b04cd0c53a30b4bccf
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 });
            })
         }
      }