feat:更新代码
This commit is contained in:
@@ -9,6 +9,8 @@ export default defineConfig(({ mode, command }) => {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
const { VITE_BASE_PATH } = env;
|
||||
return {
|
||||
//生产环境使用相对路径,开发环境用 /
|
||||
base: command === 'build' ? './' : '/',
|
||||
plugins: createVitePlugins(env, command === "build"),
|
||||
server: {
|
||||
host: '0.0.0.0', // 关键配置,允许局域网访问
|
||||
|
||||
Reference in New Issue
Block a user