W
W
WhyMe_72022-04-09 00:11:36
Vue.js
WhyMe_7, 2022-04-09 00:11:36

How to load another layout(Vue)?

Faced this problem: There are two layouts, one for the login/registration pages, the other for everything else.

<template>
  <v-container>
    <Default v-if="..."/>
    <Auth v-else/>
  </v-container>
</template>

What condition should be set so that when switching to auth/login (vue-router) another layout is loaded.
ps Tried through the store and watch property, it does not work, and in the second case it also gives an error.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question