feat: 大屏

This commit is contained in:
ygx
2025-12-23 01:06:06 +08:00
parent 593e7d90e5
commit d760e8f6cc
5 changed files with 21 additions and 11 deletions

View File

@@ -68,6 +68,11 @@ const handleFocus = () => {
const handleBlur = async () => {
focus.value = false
// 如果项目名称为空,不提交
if (!title.value || !title.value.trim()) {
title.value = chartEditStore.getProjectInfo.projectName || ''
return
}
chartEditStore.setProjectInfo(ProjectInfoEnum.PROJECT_NAME, title.value || '')
const res = (await updateProjectApi({
id: fetchRouteParamsLocation(),