mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
perf: update
This commit is contained in:
parent
747e2b9c1c
commit
e9602d23cb
@ -64,7 +64,7 @@
|
|||||||
"rgb-hex": "^4.0.0",
|
"rgb-hex": "^4.0.0",
|
||||||
"swiper": "^8.1.4",
|
"swiper": "^8.1.4",
|
||||||
"v-contextmenu": "3.0.0",
|
"v-contextmenu": "3.0.0",
|
||||||
"vue": "^3.2.34",
|
"vue": "^3.2.35",
|
||||||
"vue-form-create2": "^1.2.8",
|
"vue-form-create2": "^1.2.8",
|
||||||
"vue-i18n": "^9.2.0-beta.35",
|
"vue-i18n": "^9.2.0-beta.35",
|
||||||
"vue-json-pretty": "^2.0.2",
|
"vue-json-pretty": "^2.0.2",
|
||||||
|
6174
pnpm-lock.yaml
generated
6174
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@ const isDashboard = (route: RouteLocationMatched): boolean | string => {
|
|||||||
if (!name) {
|
if (!name) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return name.trim().toLocaleLowerCase() === "welcome".toLocaleLowerCase();
|
return name.trim().toLocaleLowerCase() === "Welcome".toLocaleLowerCase();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getBreadcrumb = (): void => {
|
const getBreadcrumb = (): void => {
|
||||||
|
@ -3,7 +3,7 @@ const Layout = () => import("/@/layout/index.vue");
|
|||||||
|
|
||||||
const homeRouter = {
|
const homeRouter = {
|
||||||
path: "/",
|
path: "/",
|
||||||
name: "home",
|
name: "Home",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: "/welcome",
|
redirect: "/welcome",
|
||||||
meta: {
|
meta: {
|
||||||
@ -14,7 +14,7 @@ const homeRouter = {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/welcome",
|
path: "/welcome",
|
||||||
name: "welcome",
|
name: "Welcome",
|
||||||
component: () => import("/@/views/welcome/index.vue"),
|
component: () => import("/@/views/welcome/index.vue"),
|
||||||
meta: {
|
meta: {
|
||||||
title: $t("menus.hshome")
|
title: $t("menus.hshome")
|
||||||
|
@ -25,7 +25,7 @@ function ascending(arr: any[]) {
|
|||||||
arr.forEach(v => {
|
arr.forEach(v => {
|
||||||
if (v?.meta?.rank === null) v.meta.rank = undefined;
|
if (v?.meta?.rank === null) v.meta.rank = undefined;
|
||||||
if (v?.meta?.rank === 0) {
|
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");
|
console.warn("rank only the home page can be 0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,10 @@ import { ReGithub, ReInfinite, RePie, ReLine, ReBar } from "./components";
|
|||||||
import { ref, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import avatars from "/@/assets/avatars.jpg";
|
import avatars from "/@/assets/avatars.jpg";
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
name: "Welcome"
|
||||||
|
});
|
||||||
|
|
||||||
const date: Date = new Date();
|
const date: Date = new Date();
|
||||||
let loading = ref<boolean>(true);
|
let loading = ref<boolean>(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user