Эх сурвалжийг харах

添加图片并删除旧的CSS和JS文件

新增了两张图片,并移除了不再使用的CSS和JS文件以清理项目。

Signed-off-by: 宋子桓🌈 <songzihuan@song-zh.com>
SongZihuan 3 сар өмнө
parent
commit
7528525697

+ 3 - 1
.env.development

@@ -12,4 +12,6 @@ VITE_API_BASE_URL=
 
 VITE_ICP="粤ICP备2022108417号"
 
-VITE_WANGAN="粤公网安备44011402000783号"
+VITE_WANGAN="粤公网安备44011402000783号"
+
+VITE_WEBSITE_NAME="是桓的小窝"

+ 3 - 1
.env.github

@@ -9,4 +9,6 @@ VITE_API_BASE_URL=
 
 VITE_ICP="粤ICP备2022108417号"
 
-VITE_WANGAN="粤公网安备44011402000783号"
+VITE_WANGAN="粤公网安备44011402000783号"
+
+VITE_WEBSITE_NAME="是桓的小窝"

+ 3 - 1
.env.production

@@ -9,4 +9,6 @@ VITE_API_BASE_URL=
 
 VITE_ICP="粤ICP备2022108417号"
 
-VITE_WANGAN="粤公网安备44011402000783号"
+VITE_WANGAN="粤公网安备44011402000783号"
+
+VITE_WEBSITE_NAME="是桓的小窝"

+ 0 - 1
docs/assets/_plugin-vue_export-helper-1b428a4d.js

@@ -1 +0,0 @@
-const o=(o,t)=>{const c=o.__vccOpts||o;for(const[s,n]of t)c[s]=n;return c};export{o as _};

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
docs/assets/index-1214b8fc.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
docs/assets/index-32a87994.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
docs/assets/index-e4f0b222.js


+ 0 - 1
docs/assets/notfound-e18f3ae4.css

@@ -1 +0,0 @@
-h1[data-v-e4409fbc]{font-size:7em;margin-bottom:.5em;color:#c00}h2[data-v-e4409fbc]{font-size:2em;color:#666}p[data-v-e4409fbc]{font-size:1.2em;color:#333}a[data-v-e4409fbc]{color:#007bff;text-decoration:none}a[data-v-e4409fbc]:hover{text-decoration:underline}

+ 0 - 1
docs/assets/notfound-f0799adc.js

@@ -1 +0,0 @@
-import{_ as e}from"./_plugin-vue_export-helper-1b428a4d.js";import{o as a,z as l,J as o,a7 as t,a8 as s,C as n,a5 as r}from"./vue-bcf60913.js";const u={},i=e=>(t("data-v-e4409fbc"),e=e(),s(),e),p=i((()=>n("h1",null,"404",-1))),h=i((()=>n("h2",null,"Oops! The page you're looking for isn't here.",-1))),c=i((()=>n("p",null,"We can't seem to find the page you were trying to reach. This might be because of:",-1))),d=i((()=>n("ul",null,[n("li",null,"An outdated link"),n("li",null,"A mistyped address"),n("li",null,"Or the page has been moved")],-1))),f=i((()=>n("p",null,[r("Try going back to the "),n("a",{href:"/"},"homepage"),r(" or contact us if the problem persists.")],-1)));const g=e(u,[["render",function(e,t){return a(),l(o,null,[p,h,c,d,f],64)}],["__scopeId","data-v-e4409fbc"]]);export{g as default};

+ 1 - 1
docs/index.html

@@ -13,7 +13,7 @@
             overflow: auto;
         }
     </style>
-  <script type="module" crossorigin src="/assets/index-288bdf2a.js"></script>
+  <script type="module" crossorigin src="/assets/index-1214b8fc.js"></script>
   <link rel="modulepreload" crossorigin href="/assets/vue-bcf60913.js">
   <link rel="stylesheet" href="/assets/index-6404ae47.css">
 </head>

+ 11 - 10
src/router/index.ts

@@ -16,15 +16,6 @@ const routes: RouteRecordRaw[] = [
   {
     path: '/home',
     redirect: '/'
-  },
-  {
-    path: '/:catchAll(.*)',
-    component: () => import('@/views/notfound.vue'),
-    meta: {
-      title: '4404 Error - Page Not Found',
-      wechat: true,
-      notfound: true
-    }
   }
 ]
 
@@ -37,8 +28,18 @@ const router = createRouter({
 })
 
 router.afterEach((to) => {
+  const websiteName = import.meta.env.VITE_WEBSITE_NAME
+
   if (to.meta.title && typeof to.meta.title === 'string') {
-    document.title = to.meta.title
+    if (websiteName !== '') {
+      document.title = websiteName + '-' + to.meta.title
+    } else {
+      document.title = to.meta.title
+    }
+  } else if (websiteName !== '') {
+    document.title = websiteName
+  } else {
+    document.title = 'Hello'
   }
   clearPlaceholderLoading()
 })

+ 1 - 1
src/utils/build_time.json

@@ -1 +1 @@
-{"compile_time":1737317274760,"time_zone":"Asia/Shanghai"}
+{"compile_time":1737319375367,"time_zone":"Asia/Shanghai"}

+ 0 - 40
src/views/notfound.vue

@@ -1,40 +0,0 @@
-<script setup lang="ts"></script>
-
-<template>
-  <h1>404</h1>
-  <h2>Oops! The page you're looking for isn't here.</h2>
-  <p>We can't seem to find the page you were trying to reach. This might be because of:</p>
-  <ul>
-    <li>An outdated link</li>
-    <li>A mistyped address</li>
-    <li>Or the page has been moved</li>
-  </ul>
-  <p>Try going back to the <a href="/">homepage</a> or contact us if the problem persists.</p>
-</template>
-
-<style scoped lang="scss">
-  h1 {
-    font-size: 7em;
-    margin-bottom: 0.5em;
-    color: #cc0000;
-  }
-
-  h2 {
-    font-size: 2em;
-    color: #666;
-  }
-
-  p {
-    font-size: 1.2em;
-    color: #333;
-  }
-
-  a {
-    color: #007bff;
-    text-decoration: none;
-  }
-
-  a:hover {
-    text-decoration: underline;
-  }
-</style>

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно