提交 8688166e 编写于 作者: 郭维嘉

fix:修复上传图片限制默认尺寸问题

上级 1302ee2c
此差异已折叠。
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"start": "webpack serve --mode=development", "start": "webpack serve --mode=development",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"p": "rm -rf dist/*.js && npm run build && ssh -t root@45.76.193.214 rm -rf /test/* exit && scp -r dist/* root@45.76.193.214:/test/" "p": "rm -rf dist/*.js && npm run build && ssh -t lish@192.168.72.126 rm -rf /md-editor/* exit && scp -r dist/* lish@192.168.72.126:/md-editor"
}, },
"devDependencies": { "devDependencies": {
"chalk": "^4.1.1", "chalk": "^4.1.1",
......
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
originalText, originalText,
selectionInfo, selectionInfo,
"\n![img](", "\n![img](",
`${url} "=600 #left")\n` `${url} "#left")\n`
); );
_this.text = newText; _this.text = newText;
_this.$refs.mdUploadFile.value = ""; _this.$refs.mdUploadFile.value = "";
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.showSelectUser = false; this.showSelectUser = false;
this.showSelectLinkType = false; this.showSelectLinkType = false;
}, 200); }, 100);
} }
} }
}, },
......
...@@ -428,7 +428,7 @@ export default { ...@@ -428,7 +428,7 @@ export default {
if (startStr === "@") { if (startStr === "@") {
setTimeout(() => { setTimeout(() => {
this.$parent.$refs["md_" + this.id].createSelectUserDialog("android"); this.$parent.$refs["md_" + this.id].createSelectUserDialog("android");
}, 200); }, 100);
} }
}, },
updateText(val, len = 0) { updateText(val, len = 0) {
......
...@@ -9,6 +9,7 @@ module.exports = { ...@@ -9,6 +9,7 @@ module.exports = {
devServer: { devServer: {
contentBase: path.resolve(__dirname, "dist"), contentBase: path.resolve(__dirname, "dist"),
host: "0.0.0.0", host: "0.0.0.0",
// port: 443,
https: true, https: true,
open: true open: true
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册