@@ -64,7 +64,7 @@
"rgb-hex": "^4.0.0",
"swiper": "^8.1.4",
"v-contextmenu": "3.0.0",
- "vue": "^3.2.34",
+ "vue": "^3.2.35",
"vue-form-create2": "^1.2.8",
"vue-i18n": "^9.2.0-beta.35",
"vue-json-pretty": "^2.0.2",
@@ -17,7 +17,7 @@ const isDashboard = (route: RouteLocationMatched): boolean | string => {
if (!name) {
return false;
}
- return name.trim().toLocaleLowerCase() === "welcome".toLocaleLowerCase();
+ return name.trim().toLocaleLowerCase() === "Welcome".toLocaleLowerCase();
};
const getBreadcrumb = (): void => {
@@ -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"),
title: $t("menus.hshome")
@@ -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");
@@ -3,6 +3,10 @@ import { ReGithub, ReInfinite, RePie, ReLine, ReBar } from "./components";
import { ref, computed } from "vue";
import avatars from "/@/assets/avatars.jpg";
+defineOptions({
+ name: "Welcome"
+});
+
const date: Date = new Date();
let loading = ref<boolean>(true);