修改菜单

This commit is contained in:
Leo_Ding 2025-12-04 17:28:31 +08:00
parent 285e6a8b31
commit 8f027e97e1
3 changed files with 11 additions and 8 deletions

View File

@ -129,14 +129,14 @@
<a-list-item class="faq-item">
<a-list-item-meta>
<template #title>
<a href="javascript:;" class="faq-title" style="color: #999;">{{ item.question }}</a>
<a :href="item.path" target="_blank" class="faq-title" style="color: #999;">{{ item.question }}</a>
</template>
</a-list-item-meta>
</a-list-item>
</template>
</a-list>
<div class="more-container">
<a-button type="link" class="more-btn">查看更多问题</a-button>
<a-button type="link" class="more-btn" @click="goToDocument()">查看更多问题</a-button>
</div>
</a-card>
</a-col>
@ -230,11 +230,14 @@ onBeforeMount(() => {
})
//
const faqList = ref([
{ id: 1, question: '如何选择GPU?' },
{ id: 2, question: '如何上传数据?' },
{ id: 3, question: '如何开具发票?' },
{ id: 4, question: '如何成为炼丹会员?' },
{ id: 1, question: '如何选择GPU?',path:'/document/select' },
{ id: 2, question: '如何快速开始?',path:'/document/start' },
{ id: 3, question: '学术资源加速?',path:'/document/study' },
{ id: 4, question: '容器示例?',path:'/document/summary' },
])
const goToDocument = () => {
window.open('/document', '_blank');
};
</script>
<style lang="scss" scoped>

View File

@ -3,7 +3,7 @@
<div :class="isHome ? 'gx_layout_header_home' : 'gx_layout_header_noHome'" class="gx_layout_header">
<div class="logo">GxDL算力云</div>
</div>
<div style="height: 60px;width: 100%;"></div>
<div class="gx_layout_content">
<div>
<a-menu id="dddddd" v-model:selectedKeys="selectedKeys" style="width: 256px;height: 100%;" mode="inline"

View File

@ -85,7 +85,7 @@ watch(() => route.path, () => {
const leftRoutes = ref([
{ key: '/home', label: '首页' },
{ key: '/market', label: '算力中心' },
{ key: '/yunmain', label: '云主机' }
// { key: '/yunmain', label: '' }
])
const rightRoutes = ref([
{ key: '/document', label: '用户文档' },