Skip to content

Commit

Permalink
fix:编辑权限时标题修改给提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jan 3, 2025
1 parent 1675387 commit 8036639
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,11 @@ const ModifyNotepad: React.FC<ModifyNotepadProps> = React.memo((props) => {
className={styles["notepad-input"]}
value={tabName}
onChange={(e) => {
onSetTabName(e.target.value)
if (readonly) {
yakitNotify("error", "无编辑权限")
} else {
onSetTabName(e.target.value)
}
}}
maxLength={100}
/>
Expand Down

0 comments on commit 8036639

Please sign in to comment.