ptSend/view/src/menu/leftMenu.vue
2023-07-05 20:38:48 +08:00

104 lines
2.2 KiB
Vue

<script setup>
import {
Check,
Download,
Edit,
View,
CollectionTag,
VideoCamera,
VideoPlay,
SwitchButton
} from "@element-plus/icons-vue";
import {router} from "../router/index.js";
</script>
<template>
<el-scrollbar>
<el-menu v-model="sel" :router="true">
<el-sub-menu index="1">
<template #title>
<el-icon>
<CollectionTag/>
</el-icon>
订阅管理
</template>
<el-menu-item-group>
<el-menu-item index="/addSubscribe">
<el-icon>
<VideoCamera/>
</el-icon>
添加订阅
</el-menu-item>
<el-menu-item index="/subscribe">
<el-icon>
<VideoCamera/>
</el-icon>
电视剧订阅
</el-menu-item>
<el-menu-item index="">
<el-icon>
<VideoPlay/>
</el-icon>
电影订阅
</el-menu-item>
</el-menu-item-group>
</el-sub-menu>
<el-sub-menu index="2">
<template #title>
<el-icon>
<Check/>
</el-icon>
功能测试
</template>
<el-menu-item-group>
<template #title>测试模块</template>
<el-menu-item index="/medaInfoTest">
<el-icon>
<Edit/>
</el-icon>
MediaInfo
</el-menu-item>
<el-menu-item index="1">
<el-icon>
<View/>
</el-icon>
图像截取
</el-menu-item>
<el-menu-item index="/downloadTest" to>
<el-icon>
<Download/>
</el-icon>
视频下载
</el-menu-item>
<el-menu-item @click="test">
<el-icon>
<SwitchButton/>
</el-icon>
功能测试
</el-menu-item>
</el-menu-item-group>
</el-sub-menu>
</el-menu>
</el-scrollbar>
</template>
<script>
import axios from "axios";
import { ref } from "vue";
const sel = ref('')
function test() {
axios.get('http://127.0.0.1:3050/test').then(r => {
})
}
</script>
<style scoped>
</style>