diff --git a/src/components/editor/TiptapEditor.vue b/src/components/editor/TiptapEditor.vue index ee349e5..8194aca 100644 --- a/src/components/editor/TiptapEditor.vue +++ b/src/components/editor/TiptapEditor.vue @@ -209,9 +209,9 @@ const editor = useEditor({ }, suggestion: { ...suggestion, - char: '@', // 指定触发字符 - allowSpaces: false, // 不允许空格 - allowedPrefixes: null, // 允许任何前缀字符,不仅仅是空格 + char: '@', + allowSpaces: false, + allowedPrefixes: null, items: ({ query }) => { return suggestion.items({ query,