Skip to content

Commit afc3e0b

Browse files
committed
chore: add loadPublicConfig to the LoginView
1 parent f04d94d commit afc3e0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adminforth/spa/src/views/LoginView.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ const backgroundPosition = computed(() => {
160160
return coreStore.config?.loginBackgroundPosition || '1/2';
161161
});
162162
163+
async function loadPublicConfig() {
164+
await coreStore.getPublicConfig();
165+
}
166+
163167
onBeforeMount(() => {
164168
if (localStorage.getItem('isAuthorized') === 'true') {
165169
// if route has next param, redirect
@@ -173,6 +177,7 @@ onBeforeMount(() => {
173177
})
174178
175179
onMounted(async () => {
180+
loadPublicConfig();
176181
if (coreStore.config?.demoCredentials) {
177182
const [demoUsername, demoPassword] = coreStore.config.demoCredentials.split(':');
178183
username.value = demoUsername;

0 commit comments

Comments
 (0)