bill 1 year ago
parent
commit
d73351f561
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/components/bill-ui/components/message/index.js

+ 9 - 0
src/components/bill-ui/components/message/index.js

@@ -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