mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-04-24 03:49:49 -05:00
🎨 保存命名查询判空
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
@@ -206,6 +207,10 @@ func RemoveCriterion(name string) (err error) {
|
||||
}
|
||||
|
||||
func SetCriterion(criterion *Criterion) (err error) {
|
||||
if "" == criterion.Name {
|
||||
return errors.New(Conf.Language(142))
|
||||
}
|
||||
|
||||
criteriaLock.Lock()
|
||||
defer criteriaLock.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user