新增:社区板块
This commit is contained in:
@@ -7,12 +7,11 @@
|
||||
<span class="text-large font-600 line-clamp-1"> 技术社区 </span>
|
||||
</template>
|
||||
<template #extra>
|
||||
<FormOutlined />
|
||||
<el-button :icon="Search">发布文章</el-button>
|
||||
<el-button :icon="EditPen" type="primary" @click="navigateTo('/ask/add')">发布文章</el-button>
|
||||
</template>
|
||||
<el-row id="container" :gutter="24" class="clearfix">
|
||||
<el-col v-for="(item,index) in list" :key="index" :sm="6" :xs="24" class="left mb-8">
|
||||
<el-card :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer" shadow="hover" @click="navigateTo(`/detail/${item.articleId}.html`)">
|
||||
<el-card :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer" shadow="hover" @click="navigateTo(`/ask/detail/${item.articleId}`)">
|
||||
<el-image
|
||||
:lazy="true"
|
||||
:src="item.image"
|
||||
@@ -43,7 +42,7 @@
|
||||
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import {ArrowLeft, Search} from '@element-plus/icons-vue'
|
||||
import {ArrowLeft, Search, EditPen} from '@element-plus/icons-vue'
|
||||
import type {CmsArticle, CmsArticleParam} from "~/api/cms/cmsArticle/model";
|
||||
import dayjs from "dayjs";
|
||||
import type {CmsWebsite, CmsWebsiteParam} from "~/api/cms/cmsWebsite/model";
|
||||
|
||||
Reference in New Issue
Block a user