bill 1 yıl önce
ebeveyn
işleme
d73351f561

+ 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