fix: remove redundant aliases
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, defineAsyncComponent, watch } from "vue";
|
||||
import { useStore } from "@/stores/index";
|
||||
import { useStore } from "~/stores/index";
|
||||
import { useNuxtApp } from "#app";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -69,7 +69,7 @@ const tabsArray = computed(() => {
|
||||
return [];
|
||||
});
|
||||
|
||||
const modules = import.meta.glob("@/components/**/*.vue");
|
||||
const modules = import.meta.glob("~/components/**/*.vue");
|
||||
function getComponent(path) {
|
||||
if (!path || typeof path !== "string" || !path.includes("/")) return null;
|
||||
const moduleKey = Object.keys(modules).find((key) => key.endsWith(`${path}.vue`));
|
||||
|
||||
Reference in New Issue
Block a user