V
Size: a a a
V
ВШ
subdomain.domain.com -> domain.com/subdomain
?ВШ
ВШ
ВШ
ВШ
ВШ
<template>
<component :is="layout">
<router-view :layout.sync="layout"/>
</component>
</template>
<script>
export default {
name: 'App',
data() {
return {
layout: 'div',
};
},
};
</script>
ВШ
ВШ
ВШ
<template>
<component :is="layout">
<slot />
</component>
</template>
<script>
export default {
name: "TenantLayoutDynamic",
props: {
theme: {
type: String,
required: true
}
},
computed: {
layout() {
return () => import(`@/Layouts/themes/${this.theme}/TenantLayout.vue`);
}
}
};
</script>
ВШ
ak
MK
АС
АС
АС
MK
АС
AS