ContextPath added to dynamic urls and services
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<script setup>
|
||||
import { ref, onMounted, computed } from 'vue';
|
||||
import { useLayout } from '@/layout/composables/layout';
|
||||
|
||||
const { contextPath } = useLayout();
|
||||
|
||||
const icons = ref(null);
|
||||
const filter = ref(null);
|
||||
@@ -10,7 +13,7 @@ const filteredIcons = computed(() => {
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
fetch('data/icons.json', { headers: { 'Cache-Control': 'no-cache' } })
|
||||
fetch(contextPath + 'data/icons.json', { headers: { 'Cache-Control': 'no-cache' } })
|
||||
.then((res) => res.json())
|
||||
.then((d) => {
|
||||
let icons = d.icons;
|
||||
|
||||
Reference in New Issue
Block a user