林旭祥 hai 6 meses
pai
achega
1c5f27439e
Modificáronse 3 ficheiros con 8 adicións e 15 borrados
  1. 8 0
      src/types/auto-imports.d.ts
  2. 0 1
      src/utils/index.ts
  3. 0 14
      src/views/home/index.vue

+ 8 - 0
src/types/auto-imports.d.ts

@@ -296,6 +296,10 @@ declare module 'vue' {
   interface GlobalComponents {}
   interface ComponentCustomProperties {
     readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
+    readonly ElLoading: UnwrapRef<typeof import('element-plus/es')['ElLoading']>
+    readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
+    readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
+    readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
     readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
     readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
     readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
@@ -575,6 +579,10 @@ declare module '@vue/runtime-core' {
   interface GlobalComponents {}
   interface ComponentCustomProperties {
     readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
+    readonly ElLoading: UnwrapRef<typeof import('element-plus/es')['ElLoading']>
+    readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
+    readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
+    readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
     readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
     readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
     readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>

+ 0 - 1
src/utils/index.ts

@@ -214,7 +214,6 @@ let utils = {
 
   // 设置收藏夹图标
   setFavicon: (url?:any) => {
-    console.log("111",url)
     let dom = document.querySelectorAll('link');
     for (let i = 0; i < dom.length; i++) {
       if (dom[i].rel === 'icon') {

+ 0 - 14
src/views/home/index.vue

@@ -88,16 +88,6 @@ $waiPadding: 6.51rem;
   height: 100vh;
 }
 
-.logo {
-  img {
-    width: 14.563rem;
-  }
-
-  position: absolute;
-  left: $waiPadding;
-  top: 5.19rem;
-}
-
 .menu {
   width: calc(100% - ($waiPadding * 2));
   padding-top: 10rem;
@@ -195,10 +185,6 @@ $waiPadding: 6.51rem;
 @media screen and (max-width: 1450px) {
   $waiPadding: 13rem;
 
-  .logo {
-    left: $waiPadding;
-  }
-
   .menu {
     width: calc(100% - ($waiPadding * 2));
   }