faq.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="faq-page">
  3. <div class="faq-title">常见问题</div>
  4. <div class="faq-list">
  5. <div v-for="item in faqList" :key="item.question" class="faq-item">
  6. <div class="faq-item-head">
  7. <span class="faq-item-icon">
  8. <icon-svg name="faq_icon" size="10px" />
  9. </span>
  10. <div class="faq-item-question">{{ item.question }}</div>
  11. </div>
  12. <div class="faq-item-answer">{{ item.answer }}</div>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup>
  18. const faqList = [
  19. {
  20. question: "Token 在哪里获取?",
  21. answer:
  22. "登录环评云助手MCP平台后,点击「获取token」即可获得。一套 Token 可同时用于 MCP 与 CLI 两种接入方式。",
  23. },
  24. {
  25. question: "为什么配置后工具没有出现?",
  26. answer:
  27. "配置完成后请完全退出并重新打开 AI 客户端再验证。若仍不出现,检查 URL 是否完整、Token 是否正确粘贴,以及是否使用了 streamableHttp 类型。",
  28. },
  29. {
  30. question: "所有 Server 都要分别配置吗?",
  31. answer:
  32. "所有 Server 共用同一套 Token,建议复制「全部配置」一次性配置完成(「豆包」每个server都需要单独配置.)。",
  33. },
  34. {
  35. question: "CLI 和 MCP 有什么区别?",
  36. answer:
  37. "MCP 适合在 AI 工具中对话式使用;CLI 适合脚本化、自动化的确定性调用,零 Token 消耗。两者共用一套 Token,可以同时使用。",
  38. },
  39. ];
  40. </script>
  41. <style scoped lang="less">
  42. .faq-page {
  43. box-sizing: border-box;
  44. width: 100%;
  45. min-height: 100%;
  46. padding: 60px;
  47. background: #FFFFFF;
  48. box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
  49. border-radius: 8px 8px 8px 8px;
  50. }
  51. .faq-title {
  52. font-family: PingFang SC, PingFang SC;
  53. font-weight: 600;
  54. font-size: 32px;
  55. color: #1E293B;
  56. line-height: 40px;
  57. text-align: center;
  58. }
  59. .faq-list {
  60. display: flex;
  61. flex-direction: column;
  62. gap: 16px;
  63. margin-top: 16px;
  64. }
  65. .faq-item {
  66. box-sizing: border-box;
  67. padding: 18px 20px;
  68. background: #F8FAFC;
  69. border-radius: 12px 12px 12px 12px;
  70. border: 1px solid #E2E8F0;
  71. }
  72. .faq-item-head {
  73. display: flex;
  74. align-items: center;
  75. gap: 10px;
  76. }
  77. .faq-item-icon {
  78. display: inline-flex;
  79. align-items: center;
  80. justify-content: center;
  81. flex-shrink: 0;
  82. box-sizing: border-box;
  83. padding: 6px;
  84. background: #EEF4FF;
  85. border-radius: 6px 6px 6px 6px;
  86. }
  87. .faq-item-question {
  88. font-family: PingFang SC, PingFang SC;
  89. font-weight: 600;
  90. font-size: 16px;
  91. color: #1E293B;
  92. line-height: 22px;
  93. text-align: left;
  94. }
  95. .faq-item-answer {
  96. margin-top: 8px;
  97. font-family: PingFang SC, PingFang SC;
  98. font-weight: 400;
  99. font-size: 14px;
  100. color: #64748B;
  101. line-height: 20px;
  102. text-align: left;
  103. }
  104. </style>