添加共同作者功能
This commit is contained in:
parent
dbccddb864
commit
e1609b71ef
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f51d2f94.js"></script><script defer="defer" src="/js/app.9d045d13.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.2aeba6f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f51d2f94.js"></script><script defer="defer" src="/js/app.c7e0f921.js"></script><link href="/css/chunk-vendors.c52e575a.css" rel="stylesheet"><link href="/css/app.2aeba6f8.css" rel="stylesheet"></head><body><noscript><strong>抱歉,NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -144,14 +144,14 @@
|
||||
<td>
|
||||
<div class="action-buttons">
|
||||
<button
|
||||
v-if="item.status === '已通过' && item.article_id"
|
||||
v-if="item.status === '已通过' && item.article_id && item.owner"
|
||||
class="edit-btn"
|
||||
@click.stop="navigateToEdit(item.article_id)"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
<button
|
||||
v-if="setPrivate && item.status === '已通过' && item.article_id && item.hasOwnProperty('is_public')"
|
||||
v-if="setPrivate && item.status === '已通过' && item.article_id && item.owner && item.hasOwnProperty('is_public')"
|
||||
:class="item.is_public ? 'private-btn' : 'public-btn'"
|
||||
@click.stop="toggleArticleAccess(item)"
|
||||
>
|
||||
|
@ -11,7 +11,12 @@
|
||||
<div class="meta-wrapper" style="margin-left: 3rem">
|
||||
<div class="article-meta">
|
||||
<div class="article-author-info">
|
||||
<span class="article-author"><UserMeta :id="article.user_id" /></span>
|
||||
<div class="article-author">
|
||||
<UserMeta :id="article.user_id" />
|
||||
<template v-if="article.co_authors && article.co_authors.length > 0">
|
||||
<UserMeta v-for="authorId in article.co_authors" :key="authorId" :id="authorId" />
|
||||
</template>
|
||||
</div>
|
||||
<span class="article-date">📅 最后更新于 {{ formatDate(article.updated_at) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -202,22 +207,24 @@ export default {
|
||||
border-left: 4px solid #3273dc;
|
||||
}
|
||||
|
||||
.article-author-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.article-tags {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.article-author-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.article-author {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.article-official, .article-highlight, .article-top {
|
||||
|
Loading…
x
Reference in New Issue
Block a user