|
@@ -153,7 +153,7 @@ export default {
|
|
|
let newStr = ''
|
|
|
this.inputValue.replace(reg, function(match, ...rest) {
|
|
|
newStr = rest[1].substring(0, rest[0]) + file + rest[1].substring(rest[0] + match.length, rest[1].length)
|
|
|
- return rest[1].substring(0, rest[0]) + file + rest[1].substring(rest[0] + match.length, rest[1].length)
|
|
|
+ return rest[1]
|
|
|
})
|
|
|
this.$nextTick(() => {
|
|
|
this.inputValue = newStr
|