<template>
  <div class="app-container under-development">
    <el-result icon="warning" title="功能开发中" sub-title="系统接口功能正在开发中，敬请期待！">
      <template #extra>
        <el-button type="primary" @click="goBack">返回首页</el-button>
      </template>
    </el-result>
    <div class="feature-info">
      <h3>功能说明</h3>
      <p>系统接口功能将包含：</p>
      <ul>
        <li>API文档查看</li>
        <li>在线调试</li>
        <li>接口测试</li>
      </ul>
    </div>
  </div>
</template>

<script setup>
/**
 * 系统接口页面（占位）
 * @author pangu
 */
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/dashboard')
}
</script>

<style scoped>
.under-development {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px;
}

.feature-info {
  margin-top: 40px;
  text-align: left;
  max-width: 600px;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 4px;
}

.feature-info h3 {
  margin-bottom: 16px;
  color: #303133;
}

.feature-info ul {
  list-style: none;
  padding-left: 0;
}

.feature-info li {
  padding: 8px 0;
  color: #606266;
}

.feature-info li:before {
  content: "✓ ";
  color: #67c23a;
  font-weight: bold;
  margin-right: 8px;
}
</style>
