diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 000000000..f04ea46ce --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,27 @@ +module.exports = { + apps: [ + { + name: "manager-api", + script: "mvn", + args: "spring-boot:run", + cwd: "/root/xiaozhi-esp32-server/main/manager-api", + interpreter: "none" // important, tells PM2 not to use node/python + }, + { + name: "manager-web", + script: "npm", + args: "run serve", + cwd: "/root/xiaozhi-esp32-server/main/manager-web", + interpreter: "none" + }, + + { + name: "mqtt-gateway", + script: "app.js", + cwd: "/root/xiaozhi-esp32-server/main/mqtt-gateway", + interpreter: "node", + watch: true + } + ] +}; + diff --git a/main/manager-api/.env.example b/main/manager-api/.env.example new file mode 100644 index 000000000..05a426d79 --- /dev/null +++ b/main/manager-api/.env.example @@ -0,0 +1,31 @@ +# Spring Profile Configuration +# Set to 'dev' for development or 'prod' for production +SPRING_PROFILES_ACTIVE=dev + +# Server Configuration +SERVER_PORT=8002 + +# Database Configuration (Override if needed) +# DB_HOST=localhost +# DB_PORT=3306 +# DB_NAME=xiaozhi +# DB_USERNAME=root +# DB_PASSWORD=your_password_here + +# Redis Configuration (Override if needed) +# REDIS_HOST=localhost +# REDIS_PORT=6379 +# REDIS_PASSWORD=your_redis_password + +# External Services +XIAOZHI_PYTHON_SERVER_URL=http://localhost:8003 + +# Vector Database (Qdrant) +QDRANT_URL=your_qdrant_url_here +QDRANT_API_KEY=your_qdrant_api_key_here + +# Voyage AI API Key +VOYAGE_API_KEY=your_voyage_api_key_here + +# Textbook Upload Directory +TEXTBOOK_UPLOAD_DIR=/path/to/uploadfile/textbooks \ No newline at end of file diff --git a/main/manager-api/.gitignore b/main/manager-api/.gitignore new file mode 100644 index 000000000..4fb26ec95 --- /dev/null +++ b/main/manager-api/.gitignore @@ -0,0 +1,7 @@ +# Environment files +.env +.env.local +.env.*.local + +# But keep the example +!.env.example \ No newline at end of file diff --git a/main/manager-api/src/main/java/xiaozhi/AdminApplication.java b/main/manager-api/src/main/java/xiaozhi/AdminApplication.java index 84e30123d..fb326fb8c 100644 --- a/main/manager-api/src/main/java/xiaozhi/AdminApplication.java +++ b/main/manager-api/src/main/java/xiaozhi/AdminApplication.java @@ -2,12 +2,36 @@ package xiaozhi; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.core.env.Environment; +import org.springframework.context.ConfigurableApplicationContext; @SpringBootApplication public class AdminApplication { public static void main(String[] args) { - SpringApplication.run(AdminApplication.class, args); - System.out.println("http://localhost:8002/xiaozhi/doc.html"); + // Log profile before Spring Boot starts + String activeProfile = System.getenv("SPRING_PROFILES_ACTIVE"); + if (activeProfile != null && !activeProfile.isEmpty()) { + System.out.println("\n========================================"); + System.out.println("Starting with profile: " + activeProfile.toUpperCase()); + System.out.println("========================================\n"); + } + + ConfigurableApplicationContext context = SpringApplication.run(AdminApplication.class, args); + Environment env = context.getEnvironment(); + String[] profiles = env.getActiveProfiles(); + + if (profiles.length > 0) { + System.out.println("\n========================================"); + System.out.println("Active Profile: " + profiles[0].toUpperCase()); + System.out.println("Configuration: application-" + profiles[0] + ".yml"); + System.out.println("========================================"); + } else { + System.out.println("\n========================================"); + System.out.println("No active profile set - using default configuration"); + System.out.println("========================================"); + } + + System.out.println("Server started: http://localhost:8002/xiaozhi/doc.html\n"); } } \ No newline at end of file diff --git a/main/manager-api/src/main/java/xiaozhi/common/exception/RenExceptionHandler.java b/main/manager-api/src/main/java/xiaozhi/common/exception/RenExceptionHandler.java index 01f1ccf21..805716d67 100644 --- a/main/manager-api/src/main/java/xiaozhi/common/exception/RenExceptionHandler.java +++ b/main/manager-api/src/main/java/xiaozhi/common/exception/RenExceptionHandler.java @@ -38,6 +38,7 @@ public class RenExceptionHandler { @ExceptionHandler(DuplicateKeyException.class) public Result handleDuplicateKeyException(DuplicateKeyException ex) { + log.error("Duplicate key error: {}", ex.getMessage(), ex); Result result = new Result<>(); result.error(ErrorCode.DB_RECORD_EXISTS); @@ -81,4 +82,4 @@ public class RenExceptionHandler { return new Result().error(ErrorCode.PARAM_VALUE_NULL, errorMsg); } -} \ No newline at end of file +} diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/controller/AgentController.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/controller/AgentController.java index 4bd8f948e..1b84853fb 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/controller/AgentController.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/controller/AgentController.java @@ -67,11 +67,21 @@ public class AgentController { private final RedisUtils redisUtils; @GetMapping("/list") - @Operation(summary = "Get user agents list") + @Operation(summary = "Get agents list (admin gets all agents, user gets own agents)") @RequiresPermissions("sys:role:normal") - public Result> getUserAgents() { + public Result> getAgentsList() { UserDetail user = SecurityUser.getUser(); - List agents = agentService.getUserAgents(user.getId()); + List agents; + + // Check if user is super admin + if (user.getSuperAdmin() != null && user.getSuperAdmin() == 1) { + // Admin sees all agents from all users with owner information + agents = agentService.getAllAgentsForAdmin(); + } else { + // Regular user sees only their own agents + agents = agentService.getUserAgents(user.getId()); + } + return new Result>().ok(agents); } diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/dao/AgentDao.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/dao/AgentDao.java index 03e569cdc..a596aab88 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/dao/AgentDao.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/dao/AgentDao.java @@ -1,8 +1,10 @@ package xiaozhi.modules.agent.dao; +import java.util.List; +import java.util.Map; + import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; - import org.apache.ibatis.annotations.Select; import xiaozhi.common.dao.BaseDao; import xiaozhi.modules.agent.entity.AgentEntity; @@ -30,6 +32,24 @@ public interface AgentDao extends BaseDao { " ORDER BY d.id DESC LIMIT 1") AgentEntity getDefaultAgentByMacAddress(@Param("macAddress") String macAddress); + /** + * 获取所有智能体及其所有者信息(管理员专用) + * + * @return 所有智能体列表及用户信息 + */ + @Select("SELECT " + + "a.id, a.agent_name, a.system_prompt, a.tts_model_id, " + + "a.llm_model_id, a.vllm_model_id, a.mem_model_id, a.tts_voice_id, " + + "a.created_at, a.updated_at, a.user_id, " + + "u.username as owner_username, " + + "GROUP_CONCAT(d.mac_address SEPARATOR ',') as device_mac_addresses " + + "FROM ai_agent a " + + "LEFT JOIN sys_user u ON a.user_id = u.id " + + "LEFT JOIN ai_device d ON a.id = d.agent_id " + + "GROUP BY a.id " + + "ORDER BY a.created_at DESC") + List> getAllAgentsWithOwnerInfo(); + /** * 根据id查询agent信息,包括插件信息 * diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/dto/AgentDTO.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/dto/AgentDTO.java index 218ee1ebf..fcf8d229a 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/dto/AgentDTO.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/dto/AgentDTO.java @@ -45,4 +45,14 @@ public class AgentDTO { @Schema(description = "设备数量", example = "10") private Integer deviceCount; + + @Schema(description = "设备MAC地址列表", example = "AA:BB:CC:DD:EE:FF,11:22:33:44:55:66") + private String deviceMacAddresses; + + // 管理员专用字段 - 智能体所有者信息 + @Schema(description = "所有者用户名", example = "john_doe") + private String ownerUsername; + + @Schema(description = "创建时间", example = "2024-03-20 10:00:00") + private Date createDate; } \ No newline at end of file diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/AgentService.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/AgentService.java index a9d4e5bb2..55cd0abce 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/AgentService.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/AgentService.java @@ -43,6 +43,21 @@ public interface AgentService extends BaseService { */ boolean insert(AgentEntity entity); + /** + * 获取用户的智能体列表 + * + * @param userId 用户ID + * @return 智能体列表 + */ + List getUserAgents(Long userId); + + /** + * 获取所有智能体列表(管理员专用,包含用户信息) + * + * @return 所有智能体列表 + */ + List getAllAgentsForAdmin(); + /** * 根据用户ID删除智能体 * diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java index fdda81834..330ee8071 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java @@ -5,6 +5,7 @@ import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Set; import java.util.UUID; import java.util.function.Function; import java.util.stream.Collectors; @@ -96,7 +97,7 @@ public class AgentServiceImpl extends BaseServiceImpl imp // 如果智能体编码为空,自动生成一个带前缀的编码 if (entity.getAgentCode() == null || entity.getAgentCode().trim().isEmpty()) { - entity.setAgentCode("AGT_" + System.currentTimeMillis()); + entity.setAgentCode("AGT_" + UUID.randomUUID().toString().replace("-", "").substring(0, 8)); } // 如果排序字段为空,设置默认值0 @@ -149,6 +150,59 @@ public class AgentServiceImpl extends BaseServiceImpl imp }).collect(Collectors.toList()); } + @Override + public List getAllAgentsForAdmin() { + List> agentMaps = agentDao.getAllAgentsWithOwnerInfo(); + return agentMaps.stream().map(agentMap -> { + AgentDTO dto = new AgentDTO(); + + // 基础智能体信息 + String agentId = (String) agentMap.get("id"); + dto.setId(agentId); + dto.setAgentName((String) agentMap.get("agent_name")); + dto.setSystemPrompt((String) agentMap.get("system_prompt")); + + // Handle LocalDateTime to Date conversion for createDate + Object createdAt = agentMap.get("created_at"); + if (createdAt instanceof java.time.LocalDateTime) { + dto.setCreateDate(java.sql.Timestamp.valueOf((java.time.LocalDateTime) createdAt)); + } + + // 获取模型名称 - 同用户方法 + String ttsModelId = (String) agentMap.get("tts_model_id"); + String llmModelId = (String) agentMap.get("llm_model_id"); + String vllmModelId = (String) agentMap.get("vllm_model_id"); + String memModelId = (String) agentMap.get("mem_model_id"); + String ttsVoiceId = (String) agentMap.get("tts_voice_id"); + + dto.setTtsModelName(modelConfigService.getModelNameById(ttsModelId)); + dto.setLlmModelName(modelConfigService.getModelNameById(llmModelId)); + dto.setVllmModelName(modelConfigService.getModelNameById(vllmModelId)); + dto.setMemModelId(memModelId); + dto.setTtsVoiceName(timbreModelService.getTimbreNameById(ttsVoiceId)); + + // 获取智能体最近的最后连接时长 - 同用户方法 + dto.setLastConnectedAt(deviceService.getLatestLastConnectionTime(agentId)); + + // 获取设备MAC地址列表 - 管理员专用 + String macAddresses = (String) agentMap.get("device_mac_addresses"); + dto.setDeviceMacAddresses(macAddresses); + + // 计算设备数量(从MAC地址列表或使用原方法) + if (macAddresses != null && !macAddresses.isEmpty()) { + dto.setDeviceCount(macAddresses.split(",").length); + } else { + // 使用原来的方法获取设备数量 + dto.setDeviceCount(getDeviceCountByAgentId(agentId)); + } + + // 管理员专用字段 - 用户信息 + dto.setOwnerUsername((String) agentMap.get("owner_username")); + + return dto; + }).collect(Collectors.toList()); + } + @Override public Integer getDeviceCountByAgentId(String agentId) { if (StringUtils.isBlank(agentId)) { @@ -377,6 +431,17 @@ public class AgentServiceImpl extends BaseServiceImpl imp entity.setChatHistoryConf(template.getChatHistoryConf()); entity.setLangCode(template.getLangCode()); entity.setLanguage(template.getLanguage()); + + // Override with custom defaults for memory and voice + entity.setMemModelId("Memory_mem0ai"); // Always use memoAI for memory + entity.setTtsModelId("TTS_EdgeTTS"); // Always use EdgeTTS model + entity.setTtsVoiceId("TTS_EdgeTTS_Ana"); // Always use EdgeTTS Ana voice (en-US-AnaNeural) + + // Log the overridden values for debugging + System.out.println("Creating agent with overridden defaults:"); + System.out.println(" Memory: " + entity.getMemModelId()); + System.out.println(" TTS Model: " + entity.getTtsModelId()); + System.out.println(" TTS Voice: " + entity.getTtsVoiceId()); } // 设置用户ID和创建者信息 @@ -388,12 +453,28 @@ public class AgentServiceImpl extends BaseServiceImpl imp // 保存智能体 insert(entity); + // 先检查是否已存在插件映射 + List existingMappings = agentPluginMappingService.list( + new QueryWrapper() + .eq("agent_id", entity.getId())); + + // 收集已存在的插件ID + Set existingPluginIds = existingMappings.stream() + .map(AgentPluginMapping::getPluginId) + .collect(Collectors.toSet()); + // 设置默认插件 List toInsert = new ArrayList<>(); // 播放音乐、播放故事、查天气、查新闻 String[] pluginIds = new String[] { "SYSTEM_PLUGIN_MUSIC", "SYSTEM_PLUGIN_STORY", "SYSTEM_PLUGIN_WEATHER", "SYSTEM_PLUGIN_NEWS_NEWSNOW" }; + for (String pluginId : pluginIds) { + // 跳过已存在的插件映射 + if (existingPluginIds.contains(pluginId)) { + continue; + } + ModelProviderDTO provider = modelProviderService.getById(pluginId); if (provider == null) { continue; @@ -412,8 +493,11 @@ public class AgentServiceImpl extends BaseServiceImpl imp mapping.setAgentId(entity.getId()); toInsert.add(mapping); } - // 保存默认插件 - agentPluginMappingService.saveBatch(toInsert); + + // 只有当有新插件需要插入时才保存 + if (!toInsert.isEmpty()) { + agentPluginMappingService.saveBatch(toInsert); + } return entity.getId(); } } diff --git a/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java b/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java index a23e9f81c..de9802776 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java @@ -71,7 +71,17 @@ public class DeviceController { @RequiresPermissions("sys:role:normal") public Result> getUserDevices(@PathVariable String agentId) { UserDetail user = SecurityUser.getUser(); - List devices = deviceService.getUserDevices(user.getId(), agentId); + List devices; + + // Check if user is super admin + if (user.getSuperAdmin() != null && user.getSuperAdmin() == 1) { + // Admin can see all devices for any agent + devices = deviceService.getDevicesByAgentId(agentId); + } else { + // Regular user can only see their own devices + devices = deviceService.getUserDevices(user.getId(), agentId); + } + return new Result>().ok(devices); } diff --git a/main/manager-api/src/main/java/xiaozhi/modules/device/service/DeviceService.java b/main/manager-api/src/main/java/xiaozhi/modules/device/service/DeviceService.java index 3392c96ff..2afbd730e 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/device/service/DeviceService.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/device/service/DeviceService.java @@ -25,6 +25,11 @@ public interface DeviceService extends BaseService { */ List getUserDevices(Long userId, String agentId); + /** + * 获取指定智能体的所有设备列表(管理员专用) + */ + List getDevicesByAgentId(String agentId); + /** * 解绑设备 */ diff --git a/main/manager-api/src/main/java/xiaozhi/modules/device/service/impl/DeviceServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/device/service/impl/DeviceServiceImpl.java index 96315ccc3..0119017c5 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/device/service/impl/DeviceServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/device/service/impl/DeviceServiceImpl.java @@ -211,6 +211,13 @@ public class DeviceServiceImpl extends BaseServiceImpl return baseDao.selectList(wrapper); } + @Override + public List getDevicesByAgentId(String agentId) { + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq("agent_id", agentId); + return baseDao.selectList(wrapper); + } + @Override public void unbindDevice(Long userId, String deviceId) { UpdateWrapper wrapper = new UpdateWrapper<>(); diff --git a/main/manager-api/src/main/resources/application-dev.yml b/main/manager-api/src/main/resources/application-dev.yml index 81251bfeb..a751a3b15 100644 --- a/main/manager-api/src/main/resources/application-dev.yml +++ b/main/manager-api/src/main/resources/application-dev.yml @@ -63,4 +63,4 @@ spring: max-active: 8 # 连接池最大连接数(使用负值表示没有限制) max-idle: 8 # 连接池中的最大空闲连接 min-idle: 0 # 连接池中的最小空闲连接 - shutdown-timeout: 100ms # 客户端优雅关闭的等待时间 + shutdown-timeout: 100ms # 客户端优雅关闭的等待时间 \ No newline at end of file diff --git a/main/manager-api/src/main/resources/application-prod.yml b/main/manager-api/src/main/resources/application-prod.yml new file mode 100644 index 000000000..c949275f5 --- /dev/null +++ b/main/manager-api/src/main/resources/application-prod.yml @@ -0,0 +1,62 @@ +knife4j: + production: false + enable: true + basic: + enable: false + username: renren + password: 2ZABCDEUgF + setting: + enableFooter: false +spring: + datasource: + druid: + #MySQL + # driver-class-name: com.mysql.cj.jdbc.Driver + # # Railway MySQL Configuration - Updated for Railway database + # url: jdbc:mysql://yamanote.proxy.rlwy.net:16958/railway?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&useSSL=true&allowPublicKeyRetrieval=true + # username: root + # password: cTefiuLmZSMqGpcQImUmBIsUBhNyUvrK + driver-class-name: com.mysql.cj.jdbc.Driver + # Railway MySQL Configuration - Updated for Railway database + url: jdbc:mysql://nozomi.proxy.rlwy.net:25037/railway?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&useSSL=true&allowPublicKeyRetrieval=true + username: root + password: OcaVNLKcwNdyElfaeUPqvvfYZiiEHgdm + + initial-size: 10 + max-active: 100 + min-idle: 10 + max-wait: 6000 + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 20 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + test-while-idle: true + test-on-borrow: false + test-on-return: false + stat-view-servlet: + enabled: false + filter: + stat: + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: false + wall: + config: + multi-statement-allow: true + data: + redis: + # Railway Redis Configuration + host: maglev.proxy.rlwy.net # Railway Redis服务器地址 + port: 16780 # Railway Redis服务器连接端口 + password: beVfOKcZjMUCBiZIQnvSMivhpSeijpKP # Railway Redis服务器连接密码 + username: default # Railway Redis用户名 + database: 0 # Redis数据库索引(默认为0) + timeout: 30000ms # 连接超时时间(毫秒)- 增加超时时间 + ssl: + enabled: false # 尝试禁用SSL,Railway可能不需要 + lettuce: + pool: + max-active: 8 # 连接池最大连接数(使用负值表示没有限制) + max-idle: 8 # 连接池中的最大空闲连接 + min-idle: 0 # 连接池中的最小空闲连接 + shutdown-timeout: 100ms # 客户端优雅关闭的等待时间 \ No newline at end of file diff --git a/main/manager-api/src/main/resources/application.yml b/main/manager-api/src/main/resources/application.yml index 9a8d3d1f6..8590bbdc5 100644 --- a/main/manager-api/src/main/resources/application.yml +++ b/main/manager-api/src/main/resources/application.yml @@ -14,8 +14,10 @@ server: spring: # 环境 dev|test|prod + # Profile will be set by SPRING_PROFILES_ACTIVE environment variable + # Default to 'dev' if not specified profiles: - active: dev # Using dev profile with Railway database configuration + default: dev messages: encoding: UTF-8 basename: i18n/messages diff --git a/main/manager-api/src/main/resources/db/changelog/202509061300_add_ana_voice.sql b/main/manager-api/src/main/resources/db/changelog/202509061300_add_ana_voice.sql new file mode 100644 index 000000000..a6dbb266e --- /dev/null +++ b/main/manager-api/src/main/resources/db/changelog/202509061300_add_ana_voice.sql @@ -0,0 +1,3 @@ +-- Add EdgeTTS Ana voice (en-US-AnaNeural) for default agent configuration +delete from `ai_tts_voice` where id = 'TTS_EdgeTTS_Ana'; +INSERT INTO `ai_tts_voice` VALUES ('TTS_EdgeTTS_Ana', 'TTS_EdgeTTS', 'EdgeTTS Ana', 'en-US-AnaNeural', 'English', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL); \ No newline at end of file diff --git a/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml b/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml index 5c5373c9d..e46d8a915 100755 --- a/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml @@ -410,4 +410,11 @@ databaseChangeLog: - sqlFile: encoding: utf8 path: classpath:db/changelog/202509030001_clear_tts_config_checksum.sql + - changeSet: + id: 202509061300 + author: claude + changes: + - sqlFile: + encoding: utf8 + path: classpath:db/changelog/202509061300_add_ana_voice.sql diff --git a/main/manager-web/src/components/DeviceItem.vue b/main/manager-web/src/components/DeviceItem.vue index 54685b264..4ec8ee64e 100644 --- a/main/manager-web/src/components/DeviceItem.vue +++ b/main/manager-web/src/components/DeviceItem.vue @@ -1,8 +1,14 @@