Skip to content

Commit

Permalink
Merge pull request #79 from Darock-Studio/opt/multiple-line-notice
Browse files Browse the repository at this point in the history
公告支持多行显示
  • Loading branch information
WindowsMEMZ authored Jan 19, 2024
2 parents bdb864c + f5453f9 commit c5f2497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DarockBili Watch App/Others/NoticeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct NoticeView: View {
DarockKit.Network.shared.requestString("https://api.darock.top/bili/notice/detail") { respStr, isSuccess in
if isSuccess {
if respStr.apiFixed() != "" {
noticeDetail = respStr.apiFixed()
noticeDetail = respStr.apiFixed().replacingOccurrences(of: "\\n", with: "\n")
} else {
DarockKit.Network.shared.requestString("https://api.darock.top/bili/notice") { respStr, isSuccess in
if isSuccess {
Expand Down

0 comments on commit c5f2497

Please sign in to comment.