소스 검색

修改提示文案

xyxie 4 달 전
부모
커밋
1cf43e145e
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      controllers/material/material.go
  2. 3 1
      static/ErrMsgConfig.json

+ 2 - 2
controllers/material/material.go

@@ -876,7 +876,7 @@ func (this *MaterialController) SaveAsMaterial() {
 		return
 	}
 	if req.MaterialName == "" {
-		br.Msg = "缺少素材库名称"
+		br.Msg = "请填写图片名称"
 		return
 	}
 	var exist *material.Material
@@ -1590,7 +1590,7 @@ func (this *MaterialController) Rename() {
 		return
 	}
 	if req.MaterialName == "" {
-		br.Msg = "缺少素材库名称"
+		br.Msg = "请填写图片名称"
 		return
 	}
 	// 判断素材是否存在

+ 3 - 1
static/ErrMsgConfig.json

@@ -59,5 +59,7 @@
   "指标已删除,请刷新页面": "Metric deleted, please refresh the page.",
   "删除失败": "Deletion failed.",
   "指标数据异常,请检查": "The metric data is abnormal, please check.",
-  "原指标与替换指标存在引用关系,不允许替换": "Original indicators and replacement indicators have a referencing relationship, which is not allowed to be replaced."
+  "原指标与替换指标存在引用关系,不允许替换": "Original indicators and replacement indicators have a referencing relationship, which is not allowed to be replaced.",
+  "该分类下关联素材库不可删除": "The category associated with the material library cannot be deleted.",
+  "请输入图片名称": "Please enter the image name",
 }