Sfoglia il codice sorgente

global api: return asset in asset registration methods

Evan You 10 anni fa
parent
commit
4464a91888
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/api/global.js

+ 1 - 0
src/api/global.js

@@ -138,6 +138,7 @@ config._assetTypes.forEach(function (type) {
         definition = _.Vue.extend(definition)
       }
       this.options[type + 's'][id] = definition
+      return definition
     }
   }
 })