完善导航栏

This commit is contained in:
jiayuqi7813
2022-06-07 13:29:04 +08:00
parent 2fc0907c15
commit 76dd1561d8
5 changed files with 119 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
<template>
<div class="category">
<el-container>
<el-aside width="200px">
<el-menu
default-active="2"
background-color="#2d3039"
text-color="#fff"
class="el-menu-vertical-demo"
@open="handleOpen"
@close="handleClose"
>
<el-menu-item index="/challenges/web">
<span>WEB</span>
</el-menu-item>
<el-menu-item index="/challenges/pwn">
<span>PWN</span>
</el-menu-item>
<el-menu-item index="/challenges/misc">
<span>MISC</span>
</el-menu-item>
<el-menu-item index="/challenges/reverse">
<span>REVERSE</span>
</el-menu-item>
<el-menu-item index="/challenges/crypto">
<span>CRYPTO</span>
</el-menu-item>
</el-menu>
</el-aside>
</el-container>
</div>
</template>
<script lang="ts" setup>
import {
Document,
Menu as IconMenu,
Location,
Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
console.log(key, keyPath)
}
</script>
<style>
</style>

View File

@@ -0,0 +1,26 @@
<template>
<el-row class="row-bg" justify="center">
<el-col :span="6">
<el-card shadow="always" class="scorecard">
<div class="left">
<h1>RANK</h1>
</div>
</el-card>
</el-col>
</el-row>
</template>
<script>
import axios from "axios";
export default {
}
</script>
<style lang="less">
</style>