feat: support for subpath based access in SH apps (#3449)

Co-authored-by: Balu Babu <balub997@gmail.com>
This commit is contained in:
James George
2023-11-22 19:35:35 +05:30
committed by GitHub
parent ee1425d0dd
commit 1829c088cc
18 changed files with 262 additions and 48 deletions

View File

@@ -42,7 +42,7 @@ export const isLoadingInitialRoute = readonly(_isLoadingInitialRoute);
export default <HoppModule>{
onVueAppInit(app) {
const router = createRouter({
history: createWebHistory(),
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});

View File

@@ -6,7 +6,7 @@
:class="{ 'min-h-screen': statusCode !== 404 }"
>
<img
:src="`/images/youre_lost.svg`"
:src="imgUrl"
loading="lazy"
class="inline-flex flex-col object-contain object-center mb-2 h-46 w-46"
:alt="message"
@@ -44,6 +44,8 @@ const props = defineProps({
},
});
const imgUrl = `${import.meta.env.BASE_URL}images/youre_lost.svg`
const statusCode = computed(() => props.error?.statusCode ?? 404);
const message = computed(