fix: 🐛 类型导入错误问题修复

IA879P #IA879P
This commit is contained in:
hxr
2024-06-25 21:00:23 +08:00
parent 8e41161ba8
commit 035497f760
2 changed files with 2 additions and 4 deletions

View File

@@ -1,8 +1,7 @@
import { RouteRecordRaw } from "vue-router"; import { RouteRecordRaw } from "vue-router";
import { constantRoutes } from "@/router"; import { constantRoutes } from "@/router";
import { store } from "@/store"; import { store } from "@/store";
import MenuAPI from "@/api/menu"; import MenuAPI, { RouteVO } from "@/api/menu";
import { RouteVO } from "@/api/menu/types";
const modules = import.meta.glob("../../views/**/**.vue"); const modules = import.meta.glob("../../views/**/**.vue");
const Layout = () => import("@/layout/index.vue"); const Layout = () => import("@/layout/index.vue");

View File

@@ -115,8 +115,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { useSettingsStore, useUserStore } from "@/store"; import { useSettingsStore, useUserStore } from "@/store";
import AuthAPI from "@/api/auth"; import AuthAPI, { LoginData } from "@/api/auth";
import { LoginData } from "@/api/auth/types";
import type { FormInstance } from "element-plus"; import type { FormInstance } from "element-plus";
import { LocationQuery, useRoute } from "vue-router"; import { LocationQuery, useRoute } from "vue-router";
import router from "@/router"; import router from "@/router";