spug测试

This commit is contained in:
Auora
2025-10-28 15:56:24 +08:00
parent c9899c62d2
commit ddc7ce2fe7
3 changed files with 67 additions and 29 deletions

View File

@@ -85,33 +85,33 @@
</dependencies> </dependencies>
<build> <!-- <build>-->
<plugins> <!-- <plugins>-->
<plugin> <!-- <plugin>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-maven-plugin</artifactId> <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<configuration> <!-- <configuration>-->
<fork>true</fork> <!-- 如果没有该配置devtools不会生效 --> <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置devtools不会生效 &ndash;&gt;-->
</configuration> <!-- </configuration>-->
<executions> <!-- <executions>-->
<execution> <!-- <execution>-->
<goals> <!-- <goals>-->
<goal>repackage</goal> <!-- <goal>repackage</goal>-->
</goals> <!-- </goals>-->
</execution> <!-- </execution>-->
</executions> <!-- </executions>-->
</plugin> <!-- </plugin>-->
<plugin> <!-- <plugin>-->
<groupId>org.apache.maven.plugins</groupId> <!-- <groupId>org.apache.maven.plugins</groupId>-->
<artifactId>maven-war-plugin</artifactId> <!-- <artifactId>maven-war-plugin</artifactId>-->
<version>${maven-war-plugin.version}</version> <!-- <version>${maven-war-plugin.version}</version>-->
<configuration> <!-- <configuration>-->
<failOnMissingWebXml>false</failOnMissingWebXml> <!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
<warName>${project.artifactId}</warName> <!-- <warName>${project.artifactId}</warName>-->
</configuration> <!-- </configuration>-->
</plugin> <!-- </plugin>-->
</plugins> <!-- </plugins>-->
<finalName>${project.artifactId}</finalName> <!-- <finalName>${project.artifactId}</finalName>-->
</build> <!-- </build>-->
</project> </project>

37
openhis-ui-vue3/.env.spug Normal file
View File

@@ -0,0 +1,37 @@
# 开发环境本地只启动前端项目依赖开发环境后端、APP
NODE_ENV=spug
VITE_DEV=true
# 请求路径
VITE_BASE_URL='http://192.168.110.252'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=false
# 是否删除console.log
VITE_DROP_CONSOLE=false
# 是否sourcemap
VITE_SOURCEMAP=true
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=dist-spug
# 商城H5会员端域名
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
# 验证码的开关
VITE_APP_CAPTCHA_ENABLE=false
# GoView域名
VITE_GOVIEW_URL='http://127.0.0.1:3000'

View File

@@ -9,7 +9,8 @@
"dev": "vite", "dev": "vite",
"build:prod": "vite build", "build:prod": "vite build",
"build:stage": "vite build --mode staging", "build:stage": "vite build --mode staging",
"preview": "vite preview" "preview": "vite preview",
"build:spug": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode spug",
}, },
"repository": { "repository": {
"type": "git", "type": "git",