2023年7月25日发(作者:)
Vue项⽬关于avue使⽤编辑器使⽤1.安装依赖npm install avue-plugin-ueditor -- 引⼊import AvueUeditor from 'avue-plugin-ueditor'(AvueUeditor);3.使⽤
text: '', upload: { //普通图⽚上传 action: "/upload/list", props: { res: "data.0", url: "url" }, //七⽜云oss配置 qiniu: { AK: "", SK: "", scope: "test", url: "/", deadline: 1 }, //阿⾥云oss配置 ali: { region: "oss-cn-beijing", endpoint: "", accessKeyId: "", accessKeySecret: "", bucket: "avue" } }, methods: {
}},VUE 项⽬引⼊Sass后启动报错 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of typestring 解决⽅法起因 :我是⽤vue cli创建的项⽬,vue cli版本是4.4.6vue⽂件⾥⾯使⽤lang="scss",各种报错,解决⽅法是:肯定要安装sass-loader和node-sass结果还是⽼是报错:TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string。查⽼半天,各种试,结果就是版本问题把⾥⾯node-sass和sass-loader****版本改成:"node-sass": "^4.11.1","sass-loader": "^7.3.0"就可以了删掉node_modules⽂件夹,重新执⾏npm install,完美解决
发布者:admin,转转请注明出处:http://www.yc00.com/news/1690228377a317984.html
评论列表(0条)