Skip to content

nuxt中引入,刷新页面报错Unexpected token 'export' #14

Open
@syqaaa

Description

@syqaaa

Describe the bug
import { QuillWatch } from "quill-image-super-solution-module";

modules: {
ImageExtend: {...},
toobar:{
container: [
["bold", "italic", "underline", "strike"],
["blockquote", "code-block"],
[{ header: 1 }, { header: 2 }],
[{ list: "ordered" }, { list: "bullet" }],
[{ script: "sub" }, { script: "super" }],
[{ indent: "-1" }, { indent: "+1" }],
// [{ direction: "rtl" }],
[{ size: ["small", false, "large", "huge"] }],
[{ header: [1, 2, 3, 4, 5, 6, false] }],
[{ font: [] }],
[{ color: [] }, { background: [] }],
[{ align: [] }],
["clean"],
["link", "image"]
], //, "video"
handlers: {
image: function(val) {
console.log(val);
QuillWatch.emit(this.quill.id); //!!!
}
}}
}
刷新报错Unexpected token 'export'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions