committed by
GitHub
28 changed files with 60 additions and 221 deletions
File diff suppressed because one or more lines are too long
@ -1,21 +1,18 @@ |
|||
// import Vue from 'vue';
|
|||
|
|||
const message = Object.assign( |
|||
{ |
|||
success: (msg: string) => { |
|||
console.log(msg); |
|||
}, |
|||
error: (msg: string) => { |
|||
console.error(msg); |
|||
}, |
|||
warning: (msg: string) => { |
|||
console.warn(msg); |
|||
}, |
|||
info: (msg: string) => { |
|||
console.info(msg); |
|||
}, |
|||
import { useMessage } from '/@/hooks/web/useMessage'; |
|||
const { createMessage } = useMessage(); |
|||
const message = Object.assign({ |
|||
success: (msg: string) => { |
|||
createMessage.success(msg); |
|||
}, |
|||
error: (msg: string) => { |
|||
createMessage.error(msg); |
|||
}, |
|||
warning: (msg: string) => { |
|||
createMessage.warning(msg); |
|||
}, |
|||
info: (msg: string) => { |
|||
createMessage.info(msg); |
|||
}, |
|||
// Vue.prototype.$message,
|
|||
); |
|||
}); |
|||
|
|||
export default message; |
|||
|
|||
Loading…
Reference in new issue