|
@@ -37,6 +37,15 @@ Message.use = function use(app) {
|
|
|
|
|
|
const existsShows = []
|
|
|
const oneShow = config => {
|
|
|
+ console.log(config)
|
|
|
+ if (config === null) {
|
|
|
+ config = 'null'
|
|
|
+ } else if (typeof config === 'string') {
|
|
|
+ config = {
|
|
|
+ msg: 'string',
|
|
|
+ type: 'warning'
|
|
|
+ }
|
|
|
+ }
|
|
|
const key = config.type + config.msg
|
|
|
if (!existsShows.includes(key)) {
|
|
|
const index = existsShows.length
|