Skip to content

Commit 86ec976

Browse files
committed
feat: 新增 dashboard 页面占位图
1 parent 0ac0719 commit 86ec976

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
<script lang="ts" setup>
2+
import SvgAdmin from "../images/admin.svg?component" // vite-svg-loader 插件的功能
3+
</script>
4+
15
<template>
26
<div class="app-container center">
3-
<el-empty description="欢迎来到 admin 角色专属首页" />
7+
<SvgAdmin class="svg" />
8+
<p>欢迎来到 Admin 角色专属首页</p>
49
</div>
510
</template>
611
712
<style lang="scss" scoped>
813
.center {
9-
height: 100%;
1014
display: flex;
15+
flex-direction: column;
1116
justify-content: center;
1217
align-items: center;
18+
.svg {
19+
width: 600px;
20+
}
1321
}
1422
</style>
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
<script lang="ts" setup>
2+
import SvgEditor from "../images/editor.svg?component" // vite-svg-loader 插件的功能
3+
</script>
4+
15
<template>
26
<div class="app-container center">
3-
<el-empty description="欢迎来到 editor 角色专属首页" />
7+
<SvgEditor class="svg" />
8+
<p>欢迎来到 Editor 角色专属首页</p>
49
</div>
510
</template>
611
712
<style lang="scss" scoped>
813
.center {
9-
height: 100%;
1014
display: flex;
15+
flex-direction: column;
1116
justify-content: center;
1217
align-items: center;
18+
.svg {
19+
width: 600px;
20+
}
1321
}
1422
</style>

src/pages/dashboard/images/admin.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)