mirror of
https://gitee.com/novel_dev_team/novel-front-web
synced 2026-07-20 17:54:10 +08:00
feat: 新增作家章节列表和章节发布
This commit is contained in:
@@ -360,10 +360,10 @@ export default {
|
||||
computed: {
|
||||
wordCountFormat(wordCount) {
|
||||
return (wordCount) => {
|
||||
if (wordCount.length > 5) {
|
||||
if (wordCount.length >= 5) {
|
||||
return parseInt(wordCount / 10000) + "万";
|
||||
}
|
||||
if (wordCount.length > 4) {
|
||||
if (wordCount.length >= 4) {
|
||||
return parseInt(wordCount / 1000) + "千";
|
||||
}
|
||||
return wordCount;
|
||||
|
||||
Reference in New Issue
Block a user