Skip to content

Commit 74d947d

Browse files
committed
fix: update lifecycle hook in LoginSetting and improve access token retrieval in qr_login
1 parent 8723d1f commit 74d947d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/src/views/system/settings/authentication/components/LoginSetting.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { computed, onMounted, reactive, ref, useTemplateRef } from 'vue'
2+
import { computed, onActivated, reactive, ref, useTemplateRef } from 'vue'
33
import { pick } from 'lodash'
44
import CurrentUserApi from '@/api/admin/auth/current-user'
55
import AuthSettingApi from '@/api/admin/system/settings/auth-setting'
@@ -150,7 +150,7 @@ function submit() {
150150
})
151151
}
152152
153-
onMounted(() => {
153+
onActivated(() => {
154154
Promise.all([loadSetting(), loadRoleSettingOptions()]).then(() => {
155155
return loadUserGroups()
156156
})

0 commit comments

Comments
 (0)