-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from MarleneJiang/issue-54-新增文章列表
Issue 54 新增文章列表
- Loading branch information
Showing
5 changed files
with
98 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div all-px-7 all-my-4 flex all-cursor-pointer> | ||
<NuxtLink | ||
to="/" | ||
:class="`${ | ||
$route.query.sort ? 'text-gray-500' : 'text-[#007fff]' | ||
} border-r-1 focus:text-[#007fff] hover:text-[#007fff]`" | ||
> | ||
推荐 | ||
</NuxtLink> | ||
<NuxtLink | ||
to="/?sort=newest" | ||
:class="`${ | ||
$route.query.sort === 'newest' ? 'text-[#007fff]' : 'text-gray-500' | ||
} border-r-1 focus:text-[#007fff] hover:text-[#007fff]`" | ||
> | ||
最新 | ||
</NuxtLink> | ||
<NuxtLink | ||
to="/?sort=three_days_hottest" | ||
:class="`${ | ||
($route.query.sort && $route.query.sort?.indexOf('hottest') !== -1) ? 'text-[#007fff]' : 'text-gray-500' | ||
} border-r-1 focus:text-[#007fff] hover:text-[#007fff]`" | ||
> | ||
热榜 | ||
</NuxtLink> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
869b173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
byte-dream-jue-jin – ./
byte-dream-jue-jin-git-main-byte-dream.vercel.app
byte-dream-jue-jin-byte-dream.vercel.app
vercel.bytedream.top
byte-dream-jue-jin.vercel.app