feat:增加打印功能

This commit is contained in:
黄云飞
2021-11-15 19:47:36 +08:00
parent 9462ba06fb
commit 0df6619cc3
6 changed files with 53 additions and 15 deletions
+6
View File
@@ -0,0 +1,6 @@
import { ZERO } from "../dataset/constant/Common"
export function writeText(text: string) {
if (!text) return
window.navigator.clipboard.writeText(text.replaceAll(ZERO, `\n`))
}