Browse Source

校资源库下载功能优化

zhuf 1 year ago
parent
commit
1346e8b1f2
3 changed files with 4 additions and 3 deletions
  1. 1 1
      auto-imports.d.ts
  2. 1 0
      src/components/FileLink/index.vue
  3. 2 2
      src/router/index.ts

+ 1 - 1
auto-imports.d.ts

@@ -1,5 +1,5 @@
 // Generated by 'unplugin-auto-import'
 export {}
 declare global {
-
+  const ElMessage: typeof import('element-plus/es')['ElMessage']
 }

+ 1 - 0
src/components/FileLink/index.vue

@@ -16,6 +16,7 @@ const files = ref(props.file.split(";").map(str => {
         name: props.n ?? name ?? part
     }
 }))
+console.log('files : ', files.value)
 
 </script>
 

+ 2 - 2
src/router/index.ts

@@ -3,8 +3,8 @@ import { app_ready, app_routes } from '~/store/app';
 import { RouteRecordDetailRaw } from './routes.d';
 
 // import localRoutes, { title } from './routes/xdjx';
-// import localRoutes, { title } from './routes/xdjy';
-import localRoutes, { title } from './routes/xdhq';
+import localRoutes, { title } from './routes/xdjy';
+// import localRoutes, { title } from './routes/xdhq';
 
 document.title = title