scorpio 2 years ago
parent
commit
f9a705d87b
4 changed files with 25 additions and 4 deletions
  1. 20 0
      components.d.ts
  2. 2 2
      src/layout/index.vue
  3. 1 1
      src/page/login.vue
  4. 2 1
      src/router/index.js

+ 20 - 0
components.d.ts

@@ -9,7 +9,27 @@ export {}
 
 declare module '@vue/runtime-core' {
   export interface GlobalComponents {
+    ElAside: typeof import('element-plus/es')['ElAside']
+    ElAvatar: typeof import('element-plus/es')['ElAvatar']
+    ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
+    ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
     ElButton: typeof import('element-plus/es')['ElButton']
+    ElCard: typeof import('element-plus/es')['ElCard']
+    ElCol: typeof import('element-plus/es')['ElCol']
+    ElContainer: typeof import('element-plus/es')['ElContainer']
+    ElDivider: typeof import('element-plus/es')['ElDivider']
+    ElDrawer: typeof import('element-plus/es')['ElDrawer']
+    ElDropdown: typeof import('element-plus/es')['ElDropdown']
+    ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
+    ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
+    ElForm: typeof import('element-plus/es')['ElForm']
+    ElFormItem: typeof import('element-plus/es')['ElFormItem']
+    ElHeader: typeof import('element-plus/es')['ElHeader']
+    ElIcon: typeof import('element-plus/es')['ElIcon']
+    ElInput: typeof import('element-plus/es')['ElInput']
+    ElLink: typeof import('element-plus/es')['ElLink']
+    ElMain: typeof import('element-plus/es')['ElMain']
+    ElRow: typeof import('element-plus/es')['ElRow']
     HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']

+ 2 - 2
src/layout/index.vue

@@ -20,8 +20,8 @@
   </div>
 </template>
 
-<script lang="js">
-import left from './letf.vue'
+<script>
+import left from './left.vue'
 import top from './top.vue'
 import keepAliveStore from '../store/keepAlive.js'
 export default {

+ 1 - 1
src/page/login.vue

@@ -10,7 +10,7 @@
               alt="logo"
             />
             <img
-              src="https://hooray.gitee.io/fantastic-admin-example/assets/login-banner.a565fac8.png"
+              src="@/assets/img/logo.png"
               class="logo-main"
               alt="logo-main"
             />

+ 2 - 1
src/router/index.js

@@ -3,9 +3,10 @@ import * as vueRouter from 'vue-router'
 import navStore from '../store/nav.js'
 import keepAliveStore from '../store/keepAlive.js'
 import generatedRoutes from '~pages'
+import { setupLayouts } from 'layouts-generated'
 
 // 导出路由
-const routes = generatedRoutes
+const routes = setupLayouts(generatedRoutes)
 const router = createRouter({
   history: vueRouter.createWebHistory(),
   routes