Kaynağa Gözat

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

baid222u 6 yıl önce
ebeveyn
işleme
2440b77f49
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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