feat(demo-vue): 新闻页面与行业动态页面新增多语言支持
- 升级组件与页面,支持根据语言环境(中/英)条件渲染标题与内容 - 在 IndustryNews 和 News 实体类中新增英文标题、英文内容字段 - sql导出demo_news_full_dump_utf8mb4_2026-04-28.sql
This commit is contained in:
@@ -14,7 +14,9 @@ public class IndustryNews {
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
private String title;
|
||||
private String titleEn;
|
||||
private String content;
|
||||
private String contentEn;
|
||||
private Integer views;
|
||||
private LocalDate publishDate;
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -15,7 +15,9 @@ import java.time.LocalDateTime;
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
private String title;
|
||||
private String titleEn;
|
||||
private String content;
|
||||
private String contentEn;
|
||||
private Integer views;
|
||||
private LocalDate publishDate;
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -7,7 +7,7 @@ spring:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/demo_news?characterEncoding=UTF-8&&serverTimezone=GMT
|
||||
username: root
|
||||
password: 123456
|
||||
password: 135827
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
initial-size: 5
|
||||
|
||||
Reference in New Issue
Block a user