Parcourir la source

开启通过ip访问的配置

RuoYi il y a 3 ans
Parent
commit
ec4170a4f1
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      vite.config.js

+ 1 - 0
vite.config.js

@@ -21,6 +21,7 @@ export default defineConfig(({ mode, command }) => {
 	// vite 相关配置
     server: {
       port: 80,
+      host: true,
       open: true,
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy