mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
test: introduce and set up unit tests in the UI (#486)
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
import { ElNotification } from "element-plus";
|
||||
|
||||
export default (text: string): void => {
|
||||
if (!navigator.clipboard) {
|
||||
console.error("Clipboard is not supported");
|
||||
return;
|
||||
}
|
||||
navigator.clipboard
|
||||
.writeText(text)
|
||||
.then(() => {
|
||||
|
Reference in New Issue
Block a user