Browse Source

局域网访问

baid222u 5 years ago
parent
commit
220b1e4d28
1 changed files with 7 additions and 1 deletions
  1. 7 1
      package.json

+ 7 - 1
package.json

@@ -20,6 +20,12 @@
     "@nuxtjs/axios": "^5.3.6",
     "@nuxtjs/pwa": "^2.6.0"
   },
+  "config": {
+    "nuxt": {
+      "host": "0.0.0.0",
+      "port": "3000"
+    }
+  },
   "devDependencies": {
     "@nuxtjs/eslint-config": "^0.0.1",
     "babel-eslint": "^10.0.1",
@@ -40,4 +46,4 @@
     "prettier": "^1.16.4",
     "sass-loader": "^7.1.0"
   }
-}
+}