Merge pull request #44 from rymcu/format

Format
This commit is contained in:
ronger 2022-10-11 08:21:14 +08:00 committed by GitHub
commit 53e6fef3a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 676 additions and 678 deletions

View File

@ -1,21 +1,21 @@
<template> <template>
<el-row class="pt-5"> <el-row class="pt-5">
<el-col> <el-col>
<el-col v-if="user" style="margin-top: 1rem;"> <el-col style="margin-top: 1rem;" v-if="user">
<el-col :xs="2" :sm="1" :xl="1"> <el-col :sm="1" :xl="1" :xs="2">
<el-avatar :src="avatar"></el-avatar> <el-avatar :src="avatar"></el-avatar>
</el-col> </el-col>
<el-col :xs="22" :sm="23" :xl="23" style="padding-left: 1rem;"> <el-col :sm="23" :xl="23" :xs="22" style="padding-left: 1rem;">
<el-input @click.native="showComment" placeholder="请输入回帖内容"></el-input> <el-input @click.native="showComment" placeholder="请输入回帖内容"></el-input>
</el-col> </el-col>
<el-col> <el-col>
<el-drawer <el-drawer
:visible.sync="drawer"
:direction="direction" :direction="direction"
:visible.sync="drawer"
size="50%"> size="50%">
<el-col slot="title"> <el-col slot="title">
<el-col> <el-col>
<el-avatar v-show="commentAuthorAvatar" :src="commentAuthorAvatar"></el-avatar> <el-avatar :src="commentAuthorAvatar" v-show="commentAuthorAvatar"></el-avatar>
<span class="text-default" style="padding-left: 1rem;">{{ commentTitle }}</span> <span class="text-default" style="padding-left: 1rem;">{{ commentTitle }}</span>
</el-col> </el-col>
</el-col> </el-col>
@ -23,53 +23,53 @@
<div id="contentEditor"></div> <div id="contentEditor"></div>
</el-col> </el-col>
<el-col style="margin-top: 1rem;padding-right:3rem;text-align: right;"> <el-col style="margin-top: 1rem;padding-right:3rem;text-align: right;">
<el-button type="primary" :loading="loading" @click="postComment" plain>发布</el-button> <el-button :loading="loading" @click="postComment" plain type="primary">发布</el-button>
</el-col> </el-col>
</el-drawer> </el-drawer>
</el-col> </el-col>
</el-col> </el-col>
<el-col v-else class="text-center" style="margin-top: 1rem;"> <el-col class="text-center" style="margin-top: 1rem;" v-else>
<el-button type="primary" size="medium" @click="gotoLogin" plain>登录</el-button> <el-button @click="gotoLogin" plain size="medium" type="primary">登录</el-button>
后发布评论 后发布评论
</el-col> </el-col>
<el-col> <el-col>
<el-col v-for="comment in comment.data" :key="comment.idComment"> <el-col :key="comment.idComment" v-for="comment in comment.data">
<el-card style="margin-top: 1rem;" :id="'comment-' + comment.idComment"> <el-card :id="'comment-' + comment.idComment" style="margin-top: 1rem;">
<el-col :xs="3" :sm="1" :xl="1"> <el-col :sm="1" :xl="1" :xs="3">
<el-avatar v-show="comment.commenter.userAvatarURL" :src="comment.commenter.userAvatarURL"></el-avatar> <el-avatar :src="comment.commenter.userAvatarURL" v-show="comment.commenter.userAvatarURL"></el-avatar>
<el-avatar v-show="!comment.commenter.userAvatarURL" <el-avatar src="https://static.rymcu.com/article/1578475481946.png"
src="https://static.rymcu.com/article/1578475481946.png"></el-avatar> v-show="!comment.commenter.userAvatarURL"></el-avatar>
</el-col> </el-col>
<el-col :xs="21" :sm="23" :xl="23" style="padding-bottom: 10px;" v-if="comment.commentStatus === '0'"> <el-col :sm="23" :xl="23" :xs="21" style="padding-bottom: 10px;" v-if="comment.commentStatus === '0'">
<el-col style="margin-left: 1rem;"> <el-col style="margin-left: 1rem;">
<el-col v-show="comment.commentOriginalCommentId"> <el-col v-show="comment.commentOriginalCommentId">
<el-col :span="16"> <el-col :span="16">
<el-link rel="nofollow" @click="onRouter('user', comment.commenter.userAccount)" :underline="false" <el-link :underline="false" @click="onRouter('user', comment.commenter.userAccount)" class="text-default"
class="text-default">{{ comment.commenter.userNickname }} rel="nofollow">{{ comment.commenter.userNickname }}
</el-link> </el-link>
<small class="text-default" style="margin: 0 0.2rem">回复了</small><span <small class="text-default" style="margin: 0 0.2rem">回复了</small><span
style="font-weight: bold;"> {{ comment.commentOriginalAuthorNickname }}</span> style="font-weight: bold;"> {{ comment.commentOriginalAuthorNickname }}</span>
</el-col> </el-col>
<el-col :span="8" class="text-right" style="padding-right: 1rem;"> <el-col :span="8" class="text-right" style="padding-right: 1rem;">
<el-link rel="nofollow" :underline="false" title="查看原评论" <el-link :underline="false" @click.native="toggleShowOriginalComment(comment.commentOriginalCommentId)" rel="nofollow"
@click.native="toggleShowOriginalComment(comment.commentOriginalCommentId)"><i title="查看原评论"><i
class="el-icon-reading"></i> 查看原评论 class="el-icon-reading"></i> 查看原评论
</el-link> </el-link>
<el-tag v-show="isAuthor(comment.commentAuthorId)" size="mini" effect="plain" <el-tag effect="plain" size="mini" style="margin-left: 5px;"
style="margin-left: 5px;"> v-show="isAuthor(comment.commentAuthorId)">
作者 作者
</el-tag> </el-tag>
</el-col> </el-col>
</el-col> </el-col>
<el-col v-show="!comment.commentOriginalCommentId"> <el-col v-show="!comment.commentOriginalCommentId">
<el-col :span="16"> <el-col :span="16">
<el-link rel="nofollow" @click="onRouter('user', comment.commenter.userAccount)" :underline="false" <el-link :underline="false" @click="onRouter('user', comment.commenter.userAccount)" class="text-default"
class="text-default">{{ comment.commenter.userNickname }} rel="nofollow">{{ comment.commenter.userNickname }}
</el-link> </el-link>
</el-col> </el-col>
<el-col :span="8" class="text-right" style="padding-right: 1rem;"> <el-col :span="8" class="text-right" style="padding-right: 1rem;">
<el-tag v-show="isAuthor(comment.commentAuthorId)" size="mini" effect="plain" <el-tag effect="plain" size="mini" style="margin-left: 5px;"
style="margin-left: 5px;"> v-show="isAuthor(comment.commentAuthorId)">
作者 作者
</el-tag> </el-tag>
</el-col> </el-col>
@ -81,24 +81,24 @@
</el-col> </el-col>
</el-col> </el-col>
<el-col :span="16" style="padding-left: 1rem;"> <el-col :span="16" style="padding-left: 1rem;">
<el-link rel="nofollow" :underline="false" class="text-default">{{ comment.timeAgo }}</el-link> <el-link :underline="false" class="text-default" rel="nofollow">{{ comment.timeAgo }}</el-link>
</el-col> </el-col>
<el-col :span="8" v-if="user" class="text-right" style="margin-bottom: 0.5rem;"> <el-col :span="8" class="text-right" style="margin-bottom: 0.5rem;" v-if="user">
<el-link rel="nofollow" :underline="false" title="评论" @click.native="replyComment(comment)"><i <el-link :underline="false" @click.native="replyComment(comment)" rel="nofollow" title="评论"><i
class="el-icon-s-comment"></i> 评论 class="el-icon-s-comment"></i> 评论
</el-link> </el-link>
</el-col> </el-col>
</el-col> </el-col>
<el-col :xs="21" :sm="23" :xl="23" style="padding-bottom: 10px;" v-else> <el-col :sm="23" :xl="23" :xs="21" style="padding-bottom: 10px;" v-else>
<el-col style="margin-left: 1rem;"> <el-col style="margin-left: 1rem;">
<el-col :span="16"> <el-col :span="16">
<el-link rel="nofollow" @click="onRouter('user', comment.commenter.userAccount)" :underline="false" <el-link :underline="false" @click="onRouter('user', comment.commenter.userAccount)" class="text-default"
class="text-default">{{ comment.commenter.userNickname }} rel="nofollow">{{ comment.commenter.userNickname }}
</el-link> </el-link>
</el-col> </el-col>
<el-col :span="8" class="text-right" style="padding-right: 1rem;"> <el-col :span="8" class="text-right" style="padding-right: 1rem;">
<el-tag v-show="isAuthor(comment.commentAuthorId)" size="mini" effect="plain" <el-tag effect="plain" size="mini" style="margin-left: 5px;"
style="margin-left: 5px;"> v-show="isAuthor(comment.commentAuthorId)">
作者 作者
</el-tag> </el-tag>
</el-col> </el-col>
@ -111,18 +111,18 @@
</el-col> </el-col>
</el-col> </el-col>
<el-col :span="16" style="padding-left: 1rem;"> <el-col :span="16" style="padding-left: 1rem;">
<el-link rel="nofollow" :underline="false" class="text-default">{{ comment.timeAgo }}</el-link> <el-link :underline="false" class="text-default" rel="nofollow">{{ comment.timeAgo }}</el-link>
</el-col> </el-col>
</el-col> </el-col>
</el-card> </el-card>
<el-col :id="'original-' + comment.commentOriginalCommentId" style="background-color: #d9d9d9;padding-left: 1.5rem; <el-col :id="'original-' + comment.commentOriginalCommentId" style="background-color: #d9d9d9;padding-left: 1.5rem;
margin-top: 0.3rem;border-radius: 0.5rem;cursor: pointer;display: none;"> margin-top: 0.3rem;border-radius: 0.5rem;cursor: pointer;display: none;">
<el-col v-show="comment.commentOriginalCommentId" :span="2"> <el-col :span="2" v-show="comment.commentOriginalCommentId">
<p> <p>
<span>{{ comment.commentOriginalAuthorNickname }} :</span> <span>{{ comment.commentOriginalAuthorNickname }} :</span>
</p> </p>
</el-col> </el-col>
<el-col v-show="comment.commentOriginalCommentId" :span="20"> <el-col :span="20" v-show="comment.commentOriginalCommentId">
<div class="vditor-reset comment-content" v-html="comment.commentOriginalContent"></div> <div class="vditor-reset comment-content" v-html="comment.commentOriginalContent"></div>
</el-col> </el-col>
</el-col> </el-col>
@ -404,9 +404,9 @@ export default {
Vue.nextTick(function () { Vue.nextTick(function () {
// //
const previewElements = document.getElementsByClassName("comment-content"); const previewElements = document.getElementsByClassName("comment-content");
if (previewElements) { if (previewElements && previewElements.length > 0) {
for (let i in previewElements) { for (let i in previewElements) {
const previewElement = previewElements[i]; let previewElement = previewElements[i];
Vue.VditorPreview.codeRender(previewElement, 'zh_CN'); Vue.VditorPreview.codeRender(previewElement, 'zh_CN');
Vue.VditorPreview.highlightRender({ Vue.VditorPreview.highlightRender({
"enable": true, "enable": true,

View File

@ -1,16 +1,15 @@
<template> <template>
<el-row justify="space-between" type="flex"> <el-row :gutter="20" justify="space-between" type="flex">
<el-col>
<el-col :xs="8" :sm="4" :md="4" :xl="3" style="padding-top: .5rem;text-align: left;"> <el-col :md="4" :span="4" :xs="8">
<a rel="nofollow" class="navbar-brand" href="/"> <a class="navbar-brand" href="/" rel="nofollow">
<img src="@/assets/rymcu.png" alt="RYMCU" class="navbar-brand-img"> <img alt="RYMCU" class="navbar-brand-img" src="@/assets/rymcu.png">
</a> </a>
</el-col> </el-col>
<el-col :xs="0" :sm="8" :md="8" :xl="12" style="text-align: center;">
<el-row type="flex" justify="center"> <el-col :md="14" :span="10" :xs="0" style="max-height: 58px;overflow: hidden">
<el-col> <el-menu :default-active="activeMenu" @select="handleSelectMenu" mode="horizontal"
<el-menu :default-active="activeMenu" style="margin-top: -2px;border: 0;" mode="horizontal" style="margin-top: -2px;border: 0;">
@select="handleSelectMenu">
<el-menu-item index="index">首页</el-menu-item> <el-menu-item index="index">首页</el-menu-item>
<el-menu-item index="topic">专题</el-menu-item> <el-menu-item index="topic">专题</el-menu-item>
<el-menu-item index="portfolios">作品集</el-menu-item> <el-menu-item index="portfolios">作品集</el-menu-item>
@ -18,22 +17,21 @@
<el-menu-item index="open-data">开放数据</el-menu-item> <el-menu-item index="open-data">开放数据</el-menu-item>
</el-menu> </el-menu>
</el-col> </el-col>
</el-row>
</el-col> <el-col :md="10" :span="10" :xs="16" style="line-height: 60px">
<el-col :xs="16" :sm="12" :md="12" :xl="9" style="padding-top: 1rem;">
<client-only> <client-only>
<el-col v-if="user" style="text-align: right;"> <el-col style="text-align: right;" v-if="user">
<el-popover <el-popover
@show="handleShowPopover"
placement="bottom" placement="bottom"
width="400"
trigger="click" trigger="click"
v-model="showPopover" v-model="showPopover"
@show="handleShowPopover"> width="400">
<el-input name="searchInput" v-model="queryString" @keyup.enter.native="querySearchAsync" <el-input @keyup.enter.native="querySearchAsync" name="searchInput" placeholder="搜索文章,作品集,用户"
placeholder="搜索文章,作品集,用户"> v-model="queryString">
<el-button slot="append" @click="querySearchAsync"> <el-button @click="querySearchAsync" slot="append">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <svg height="24" style="fill: rgba(0, 0, 0, 1);" viewBox="0 0 24 24" width="24"
style="fill: rgba(0, 0, 0, 1);"> xmlns="http://www.w3.org/2000/svg">
<path <path
d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path> d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path>
<path <path
@ -41,9 +39,9 @@
</svg> </svg>
</el-button> </el-button>
</el-input> </el-input>
<el-button slot="reference" circle size="small"> <el-button circle size="small" slot="reference">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" <svg height="14" style="fill: rgba(0, 0, 0, 1);" viewBox="0 0 24 24" width="14"
style="fill: rgba(0, 0, 0, 1);"> xmlns="http://www.w3.org/2000/svg">
<path <path
d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path> d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path>
<path <path
@ -51,42 +49,43 @@
</svg> </svg>
</el-button> </el-button>
</el-popover> </el-popover>
<el-link rel="nofollow" :underline="false" style="padding-left: 10px;padding-right: 10px;" <el-link :underline="false" href="/portfolio/post" rel="nofollow"
href="/portfolio/post">创建作品集 style="padding-left: 10px;padding-right: 10px;">创建作品集
</el-link> </el-link>
<el-link rel="nofollow" :underline="false" style="padding-left: 10px;padding-right: 10px;" <el-link :underline="false" href="/article/post" rel="nofollow"
href="/article/post">发帖 style="padding-left: 10px;padding-right: 10px;">发帖
</el-link> </el-link>
<el-link rel="nofollow" :underline="false" style="padding-left: 10px;padding-right: 10px;"> <el-link :underline="false" rel="nofollow" style="padding-left: 10px;padding-right: 10px;">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown @command="handleCommand" trigger="click">
<el-badge :value="notificationNumbers" class="item"> <el-badge :value="notificationNumbers" class="item">
<el-link rel="nofollow" :underline="false" style="font-size: 1.4rem;"> <el-link :underline="false" rel="nofollow" style="font-size: 1.4rem;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <svg height="24" style="fill: rgba(0, 0, 0, 1);" viewBox="0 0 24 24" width="24"
style="fill: rgba(0, 0, 0, 1);"> xmlns="http://www.w3.org/2000/svg">
<path <path
d="M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"></path> d="M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"></path>
</svg> </svg>
</el-link> </el-link>
</el-badge> </el-badge>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="notification in notifications" :key="notification.idNotification" <el-dropdown-item :key="notification.idNotification" command="notification"
command="notification">{{ notification.dataSummary }} v-for="notification in notifications">{{ notification.dataSummary }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="notification">查看所有消息</el-dropdown-item> <el-dropdown-item command="notification">查看所有消息</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-link> </el-link>
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;"> <el-link :underline="false" rel="nofollow" style="margin-left: 10px;">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown @command="handleCommand" trigger="click">
<el-avatar v-if="avatarURL" size="small" :src="avatarURL"></el-avatar> <el-avatar :src="avatarURL" size="small" v-if="avatarURL"></el-avatar>
<el-avatar v-else size="small" src="https://static.rymcu.com/article/1578475481946.png"></el-avatar> <el-avatar size="small" src="https://static.rymcu.com/article/1578475481946.png" v-else></el-avatar>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item style="align-items: center;"> <el-dropdown-item style="align-items: center;">
<el-avatar class="mr-3" v-if="avatarURL" size="small" style="margin-top: 1rem;" <el-avatar :src="avatarURL" class="mr-3" size="small" style="margin-top: 1rem;"
:src="avatarURL"></el-avatar> v-if="avatarURL"></el-avatar>
<el-avatar class="mr-3" v-else size="small" style="margin-top: 1rem;" <el-avatar class="mr-3" size="small" src="https://static.rymcu.com/article/1578475481946.png"
src="https://static.rymcu.com/article/1578475481946.png"></el-avatar> style="margin-top: 1rem;"
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;margin-bottom: 1rem;"> v-else></el-avatar>
<el-link :underline="false" rel="nofollow" style="margin-left: 10px;margin-bottom: 1rem;">
{{ nickname }} {{ nickname }}
</el-link> </el-link>
</el-dropdown-item> </el-dropdown-item>
@ -95,24 +94,24 @@
<el-dropdown-item command="drafts" divided>我的草稿</el-dropdown-item> <el-dropdown-item command="drafts" divided>我的草稿</el-dropdown-item>
<el-dropdown-item command="wallet">我的钱包</el-dropdown-item> <el-dropdown-item command="wallet">我的钱包</el-dropdown-item>
<el-dropdown-item command="user-info" divided>设置</el-dropdown-item> <el-dropdown-item command="user-info" divided>设置</el-dropdown-item>
<el-dropdown-item v-if="hasPermissions" command="admin-dashboard">系统管理</el-dropdown-item> <el-dropdown-item command="admin-dashboard" v-if="hasPermissions">系统管理</el-dropdown-item>
<el-dropdown-item command="logout" divided>退出登录</el-dropdown-item> <el-dropdown-item command="logout" divided>退出登录</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-link> </el-link>
</el-col> </el-col>
<el-col v-else style="text-align: right;"> <el-col style="text-align: right;" v-else>
<el-popover <el-popover
@show="handleShowPopover"
placement="bottom" placement="bottom"
width="400"
trigger="click" trigger="click"
v-model="showPopover" v-model="showPopover"
@show="handleShowPopover"> width="400">
<el-input name="searchInput" v-model="queryString" @keyup.enter.native="querySearchAsync" <el-input @keyup.enter.native="querySearchAsync" name="searchInput" placeholder="搜索文章,作品集,用户"
placeholder="搜索文章,作品集,用户"> v-model="queryString">
<el-button slot="append" @click="querySearchAsync"> <el-button @click="querySearchAsync" slot="append">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <svg height="24" style="fill: rgba(0, 0, 0, 1);" viewBox="0 0 24 24" width="24"
style="fill: rgba(0, 0, 0, 1);"> xmlns="http://www.w3.org/2000/svg">
<path <path
d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path> d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path>
<path <path
@ -120,9 +119,9 @@
</svg> </svg>
</el-button> </el-button>
</el-input> </el-input>
<el-button slot="reference" circle size="small"> <el-button circle size="small" slot="reference">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" <svg height="14" style="fill: rgba(0, 0, 0, 1);" viewBox="0 0 24 24" width="14"
style="fill: rgba(0, 0, 0, 1);"> xmlns="http://www.w3.org/2000/svg">
<path <path
d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path> d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path>
<path <path
@ -130,12 +129,11 @@
</svg> </svg>
</el-button> </el-button>
</el-popover> </el-popover>
<el-link rel="nofollow" :underline="false" style="margin-left: 10px;" @click="login">登录</el-link> <el-link :underline="false" @click="login" rel="nofollow" style="margin-left: 10px;">登录</el-link>
<el-link href="/register" rel="nofollow" :underline="false" style="margin-left: 10px;">注册</el-link> <el-link :underline="false" href="/register" rel="nofollow" style="margin-left: 10px;">注册</el-link>
</el-col> </el-col>
</client-only> </client-only>
</el-col> </el-col>
</el-col>
</el-row> </el-row>
</template> </template>