瀏覽代碼

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

baid222u 5 年之前
父節點
當前提交
2440b77f49
共有 1 個文件被更改,包括 3 次插入1 次删除
  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