Browse Source

删除无用文件

tongshangming 8 months ago
parent
commit
67c5464efa
4 changed files with 12 additions and 87 deletions
  1. 4 4
      src/components.d.ts
  2. 3 3
      src/components/FsTitle.vue
  3. 5 0
      src/router/constantRouter.ts
  4. 0 80
      src/style.css

+ 4 - 4
src/components.d.ts

@@ -7,9 +7,9 @@ export {}
 
 declare module 'vue' {
   export interface GlobalComponents {
-    ElConfigProvider: (typeof import('element-plus/es'))['ElConfigProvider']
-    FsTitle: (typeof import('./components/FsTitle.vue'))['default']
-    RouterLink: (typeof import('vue-router'))['RouterLink']
-    RouterView: (typeof import('vue-router'))['RouterView']
+    ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
+    FsTitle: typeof import('./components/FsTitle.vue')['default']
+    RouterLink: typeof import('vue-router')['RouterLink']
+    RouterView: typeof import('vue-router')['RouterView']
   }
 }

+ 3 - 3
src/components/FsTitle.vue

@@ -12,8 +12,8 @@ const props = withDefaults(defineProps<Props>(), {
   color: '#fff',
   title: '方是科技',
   showTime: true,
-  src: 'https://www.sxidc.com/uploads/file/0b4fe95d6fac3601393e92aa46c448e0_20231007100631.png',
-  height: '70px',
+  src: 'https://sxidc.com/uploads/file/f53a3b473ba76b18733f052dd8b4718b_20231008022129.png',
+  height: '60px',
 })
 onMounted(() => {
   if (props.showTime) {
@@ -31,7 +31,7 @@ const time: any = ref('')
 </script>
 <template>
   <div
-    class="relative bg-[length:100%_100%] w-full bg-center bg-no-repeat text-[50px] font-bold flex items-center justify-center"
+    class="relative bg-[length:100%_100%] w-full bg-center bg-no-repeat text-[45px] font-bold flex items-center justify-center"
     :style="{
       backgroundImage: `url(${src})`,
       color: `${color}`,

+ 5 - 0
src/router/constantRouter.ts

@@ -2,6 +2,11 @@
 import type { RouteRecordRaw } from 'vue-router'
 
 const constantRouter: RouteRecordRaw[] = [
+  {
+    path: '/',
+    name: 'layout',
+    redirect: '/home',
+  },
   {
     path: '/home',
     name: 'home',

+ 0 - 80
src/style.css

@@ -1,80 +0,0 @@
-:root {
-  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
-  line-height: 1.5;
-  font-weight: 400;
-
-  color-scheme: light dark;
-  color: rgba(255, 255, 255, 0.87);
-  background-color: #242424;
-
-  font-synthesis: none;
-  text-rendering: optimizeLegibility;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-text-size-adjust: 100%;
-}
-
-a {
-  font-weight: 500;
-  color: #646cff;
-  text-decoration: inherit;
-}
-a:hover {
-  color: #535bf2;
-}
-
-body {
-  margin: 0;
-  display: flex;
-  place-items: center;
-  min-width: 320px;
-  min-height: 100vh;
-}
-
-h1 {
-  font-size: 3.2em;
-  line-height: 1.1;
-}
-
-button {
-  border-radius: 8px;
-  border: 1px solid transparent;
-  padding: 0.6em 1.2em;
-  font-size: 1em;
-  font-weight: 500;
-  font-family: inherit;
-  background-color: #1a1a1a;
-  cursor: pointer;
-  transition: border-color 0.25s;
-}
-button:hover {
-  border-color: #646cff;
-}
-button:focus,
-button:focus-visible {
-  outline: 4px auto -webkit-focus-ring-color;
-}
-
-.card {
-  padding: 2em;
-}
-
-#app {
-  max-width: 1280px;
-  margin: 0 auto;
-  padding: 2rem;
-  text-align: center;
-}
-
-@media (prefers-color-scheme: light) {
-  :root {
-    color: #213547;
-    background-color: #ffffff;
-  }
-  a:hover {
-    color: #747bff;
-  }
-  button {
-    background-color: #f9f9f9;
-  }
-}