refactor(projects): 优化路由导入页面写法,页面路由调整

This commit is contained in:
Soybean
2021-11-28 12:19:00 +08:00
parent d683894beb
commit 0b10b5056e
36 changed files with 303 additions and 197 deletions

3
src/views/about/index.ts Normal file
View File

@ -0,0 +1,3 @@
import About from './index.vue';
export { About };

View File

@ -0,0 +1,6 @@
<template>
<div></div>
</template>
<script setup lang="ts"></script>
<style scoped></style>

View File

@ -0,0 +1,6 @@
<template>
<div></div>
</template>
<script setup lang="ts"></script>
<style scoped></style>

View File

@ -0,0 +1,4 @@
import ComponentButton from './button/index.vue';
import ComponentCard from './card/index.vue';
export { ComponentButton, ComponentCard };

View File

@ -0,0 +1,4 @@
import DashboardAnalysis from './analysis/index.vue';
import DashboardWorkbench from './workbench/index.vue';
export { DashboardAnalysis, DashboardWorkbench };

View File

@ -0,0 +1,5 @@
import DocumentVue from './vue/index.vue';
import DocumentVite from './vite/index.vue';
import DocumentNaive from './naive/index.vue';
export { DocumentVue, DocumentVite, DocumentNaive };

8
src/views/index.ts Normal file
View File

@ -0,0 +1,8 @@
export * from './system';
export * from './dashboard';
export * from './document';
export * from './plugin';
export * from './component';
export * from './multi-menu';
export * from './about';
export * from './website';

View File

@ -0,0 +1,3 @@
import MultiMenuFirstSecond from './first/second/index.vue';
export { MultiMenuFirstSecond };

19
src/views/plugin/index.ts Normal file
View File

@ -0,0 +1,19 @@
import PluginMap from './map/index.vue';
import PluginVideo from './video/index.vue';
import PluginEditorQuill from './editor/quill/index.vue';
import PluginEditorMarkdown from './editor/markdown/index.vue';
import PluginSwiper from './swiper/index.vue';
import PluginCopy from './copy/index.vue';
import PluginIcon from './icon/index.vue';
import PluginPrint from './print/index.vue';
export {
PluginMap,
PluginVideo,
PluginEditorQuill,
PluginEditorMarkdown,
PluginSwiper,
PluginCopy,
PluginIcon,
PluginPrint
};

View File

@ -0,0 +1,6 @@
import Login from './login/index.vue';
import NoPermission from './exception/403.vue';
import NotFound from './exception/404.vue';
import ServiceError from './exception/500.vue';
export { Login, NoPermission, NotFound, ServiceError };

View File

@ -0,0 +1,3 @@
import Website from './index.vue';
export { Website };