fix: icon clipboard (#3142)

This commit is contained in:
kooriookami 2021-08-31 13:34:45 +08:00 committed by GitHub
parent 03bc13e45a
commit 0743e79826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,9 @@ router.isReady().then(() => {
app.config.globalProperties.$copySvgIcon = iconName => { app.config.globalProperties.$copySvgIcon = iconName => {
clipboardCopy( clipboardCopy(
`<el-svg-icon> `<el-icon>
<${hyphenate(iconName)} /> <${hyphenate(iconName)} />
</el-svg-icon> </el-icon>
`, `,
).then(() => { ).then(() => {
app.config.globalProperties.$message({ app.config.globalProperties.$message({