fix: route Type
This commit is contained in:
parent
f81163aca8
commit
300a73fe63
@ -18,12 +18,15 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import IconCommon from "@/layout/components/Menu/icon-common.vue";
|
import IconCommon from "@/layout/components/Menu/icon-common.vue";
|
||||||
|
import { RouteRecordRaw } from "vue-router";
|
||||||
defineOptions({ name: "MenuItem" });
|
defineOptions({ name: "MenuItem" });
|
||||||
const props = defineProps({
|
|
||||||
routeTree: {
|
interface Props {
|
||||||
type: Array,
|
routeTree: RouteRecordRaw[];
|
||||||
default: () => []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
routeTree: () => []
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { RouteRecordRaw } from "vue-router";
|
||||||
/**
|
/**
|
||||||
* 路由path路径与文件夹名称相同,找文件可以浏览器地址快速查找,方便定位文件
|
* 路由path路径与文件夹名称相同,找文件可以浏览器地址快速查找,方便定位文件
|
||||||
*
|
*
|
||||||
@ -21,13 +22,13 @@
|
|||||||
* 依此类推
|
* 依此类推
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const dynamicRoutes = [
|
export const dynamicRoutes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
name: "/",
|
name: "/",
|
||||||
redirect: "/home",
|
redirect: "/home",
|
||||||
component: () => import("@/layout/index.vue"), // 容器布局-顶层路由
|
component: () => import("@/layout/index.vue"), // 容器布局-顶层路由
|
||||||
meat: {
|
meta: {
|
||||||
isKeepAlive: true
|
isKeepAlive: true
|
||||||
},
|
},
|
||||||
// 二级路由-主要渲染页面
|
// 二级路由-主要渲染页面
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户信息
|
* 用户信息
|
||||||
* @methods setAccount 设置账号信息
|
* @methods setAccount 设置账号信息
|
||||||
|
|||||||
0
src/typings/global.d.ts
vendored
Normal file
0
src/typings/global.d.ts
vendored
Normal file
Loading…
x
Reference in New Issue
Block a user