mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-13 12:43:43 +08:00
搭建好管理后台模板
This commit is contained in:
25
web/src/views/admin/RoleList.vue
Normal file
25
web/src/views/admin/RoleList.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="system-config">
|
||||
{{ title }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {defineComponent} from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RoleList',
|
||||
data() {
|
||||
return {
|
||||
title: "角色管理",
|
||||
|
||||
}
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.system-config {
|
||||
|
||||
}
|
||||
</style>
|
||||
24
web/src/views/admin/SysConfig.vue
Normal file
24
web/src/views/admin/SysConfig.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div class="system-config">
|
||||
系统配置
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {defineComponent} from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SysConfig',
|
||||
data() {
|
||||
return {
|
||||
title: "系统管理",
|
||||
}
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.system-config {
|
||||
|
||||
}
|
||||
</style>
|
||||
24
web/src/views/admin/UserList.vue
Normal file
24
web/src/views/admin/UserList.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div class="system-config">
|
||||
{{ title }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {defineComponent} from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: 'UserList',
|
||||
data() {
|
||||
return {
|
||||
title: "用户管理",
|
||||
}
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.system-config {
|
||||
|
||||
}
|
||||
</style>
|
||||
41
web/src/views/admin/Welcome.vue
Normal file
41
web/src/views/admin/Welcome.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<div class="welcome" :style="{ height: winHeight + 'px' }">
|
||||
<h1>Chat-Plus 控制台</h1>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {defineComponent} from "vue"
|
||||
|
||||
export default defineComponent({
|
||||
name: 'XWelcome',
|
||||
data() {
|
||||
return {
|
||||
winHeight: window.innerHeight,
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
const that = this
|
||||
window.addEventListener("resize", function () {
|
||||
that.winHeight = window.innerHeight
|
||||
})
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.welcome {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #202020;
|
||||
background-color: #282c34;
|
||||
|
||||
h1 {
|
||||
font-size: 300%;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.1em;
|
||||
text-shadow: -1px -1px 1px #111111, 2px 2px 1px #363636;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user