Browse Source

允许访问

liuq 4 months ago
parent
commit
68c472066b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vite.config.js

+ 2 - 1
vite.config.js

@@ -5,7 +5,8 @@ export default defineConfig({
   plugins: [vue()],
   plugins: [vue()],
   server: {
   server: {
     port: 3000,
     port: 3000,
-    open: true
+    open: true,
+    allowedHosts: ['api.hnyunzhu.com']
   }
   }
 })
 })