<script setup>

import {
  Check,
  Download,
  Edit,
  View,
  CollectionTag,
  VideoCamera,
  VideoPlay,
  SwitchButton, House, Operation, Collection, CircleCheck, CircleClose
} from "@element-plus/icons-vue";
</script>

<template>

  <el-scrollbar>
    <el-menu v-model="sel" :router="true">
      <el-menu-item index="/">
        <el-icon>
          <el-icon>
            <House/>
          </el-icon>
        </el-icon>
        <span>首页</span>
      </el-menu-item>
      <el-sub-menu index="2">
        <template #title>
          <el-icon>
            <CollectionTag/>
          </el-icon>
          订阅管理
        </template>
        <el-menu-item-group>
          <el-menu-item index="/subscribe">
            <el-icon>
              <VideoCamera/>
            </el-icon>
            电视剧订阅
          </el-menu-item>
          <el-menu-item index="">
            <el-icon><CircleCheck /></el-icon>
            发布记录
          </el-menu-item>
          <el-menu-item index="">
            <el-icon><CircleClose /></el-icon>
            失败记录
          </el-menu-item>
        </el-menu-item-group>
      </el-sub-menu>

      <el-menu-item index="/settings">
        <el-icon>
          <el-icon><Operation /></el-icon>
        </el-icon>
        <span>系统设置</span>
      </el-menu-item>
      <el-sub-menu index="4">
        <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>