浏览代码

开启通过ip访问的配置

RuoYi 3 年之前
父节点
当前提交
ec4170a4f1
共有 1 个文件被更改,包括 1 次插入0 次删除
  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