Browse Source

富文本上传base64

newStyle
jyt 2 years ago
parent
commit
60279c4b63
2 changed files with 9 additions and 9 deletions
  1. +8
    -8
      src/components/wechat/WxEditor.vue
  2. +1
    -1
      vue.config.js

+ 8
- 8
src/components/wechat/WxEditor.vue View File

@@ -89,14 +89,14 @@
container: toolbarOptions,
// container: "#toolbar",
handlers: {
image: function(value) {
if (value) {
// 触发input框选择图片文件
document.querySelector(".avatar-uploader input").click();
} else {
this.quill.format("image", false);
}
},
// image: function(value) {
// if (value) {
// // 触发input框选择图片文件
// document.querySelector(".avatar-uploader input").click();
// } else {
// this.quill.format("image", false);
// }
// },
link: function(value) {
if (value) {
var href = prompt('注意!只支持公众号图文链接');


+ 1
- 1
vue.config.js View File

@@ -8,7 +8,7 @@
// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
const url = 'http://62.234.122.43:9999' //正式
// const url = 'http://192.168.31.88:9999' //正式
// const url = 'http://192.168.31.89:9999' //sh
// const url = 'https://zanyong.hfju.com' // 正式域名
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']


Loading…
Cancel
Save