File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44 * @param {axios|Record<string:axios> }options
55 */
66function plugin ( app , options ) {
7- if ( plugin . installed ) {
8- return ;
7+ if ( app . vueAxiosInstalled ) {
8+ return
99 }
1010
1111 const normalizedConfig = isAxiosLike ( options ) ? migrateToMultipleInstances ( options ) : options ;
@@ -14,8 +14,6 @@ function plugin(app, options) {
1414 return ;
1515 }
1616
17- plugin . installed = true ;
18-
1917 const vueVersion = getVueVersion ( app ) ;
2018 if ( ! vueVersion ) {
2119 console . error ( '[vue-axios] unknown Vue version' ) ;
@@ -25,6 +23,8 @@ function plugin(app, options) {
2523 Object . keys ( normalizedConfig ) . forEach ( registrationKey => {
2624 handler ( app , registrationKey , normalizedConfig [ registrationKey ] )
2725 } )
26+
27+ app . vueAxiosInstalled = true ;
2828}
2929
3030if ( typeof exports == "object" ) {
You can’t perform that action at this time.
0 commit comments