feat: 新增作家章节列表和章节发布

This commit is contained in:
xiongxiaoyang
2022-05-29 20:46:51 +08:00
parent 7f34045a82
commit f18746d8ff
9 changed files with 1533 additions and 17 deletions

View File

@@ -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;