Files
violin-home/src/utils/common.ts
T
2023-03-25 23:58:10 +08:00

13 lines
239 B
TypeScript

import { h } from 'vue'
import { ElMessage } from 'element-plus'
const setErrorMessage = (msg: string) => {
ElMessage({
message: h('p', null, [
h('i', { style: 'color: teal' }, msg),
]),
})
}
export { setErrorMessage }