Skip to content

Commit 76f089a

Browse files
committed
优化三元运算符写法
1 parent 53d2022 commit 76f089a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/MainPage/MessageBoard.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,7 @@ export default {
306306
let MatchedMessageText = That.MatchEmotion(
307307
Store.getters.GetMessageText
308308
),
309-
iconNo = this.GetLocalStorage("SunqBlog").ArticleCommentIcon
310-
? this.GetLocalStorage("SunqBlog").ArticleCommentIcon
311-
: Math.round(Math.random() * 4);
309+
iconNo = this.GetLocalStorage("SunqBlog").ArticleCommentIcon || Math.round(Math.random() * 4);
312310
313311
this.GetLocation(function (LocationCityName) {
314312
That.SQFrontAjax({

0 commit comments

Comments
 (0)