perf: update

This commit is contained in:
xiaoxian521
2022-05-22 14:39:02 +08:00
parent 747e2b9c1c
commit e9602d23cb
6 changed files with 4258 additions and 1930 deletions

View File

@@ -3,7 +3,7 @@ const Layout = () => import("/@/layout/index.vue");
const homeRouter = {
path: "/",
name: "home",
name: "Home",
component: Layout,
redirect: "/welcome",
meta: {
@@ -14,7 +14,7 @@ const homeRouter = {
children: [
{
path: "/welcome",
name: "welcome",
name: "Welcome",
component: () => import("/@/views/welcome/index.vue"),
meta: {
title: $t("menus.hshome")

View File

@@ -25,7 +25,7 @@ function ascending(arr: any[]) {
arr.forEach(v => {
if (v?.meta?.rank === null) v.meta.rank = undefined;
if (v?.meta?.rank === 0) {
if (v.name !== "home" && v.path !== "/") {
if (v.name !== "Home" && v.path !== "/") {
console.warn("rank only the home page can be 0");
}
}