Explorar el Código

更改配置,添加axios到nuxt.congig里

baid222u hace 6 años
padre
commit
2440b77f49
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      nuxt.config.js

+ 3 - 1
nuxt.config.js

@@ -29,7 +29,9 @@ export default {
   /*
    ** Plugins to load before mounting the App
    */
-  plugins: [],
+  plugins: [
+    { src: '~plugins/axios', ssr: true }
+  ],
 
   /*
    ** Nuxt.js modules