Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
dc9f3ee7
Commit
dc9f3ee7
authored
Oct 15, 2024
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级quill到最新版本2.0.2
parent
78bb30bb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
package.json
ruoyi-ui/package.json
+1
-1
index.vue
ruoyi-ui/src/components/Editor/index.vue
+2
-2
vue.config.js
ruoyi-ui/vue.config.js
+1
-0
No files found.
ruoyi-ui/package.json
View file @
dc9f3ee7
...
...
@@ -49,7 +49,7 @@
"js-cookie"
:
"3.0.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"nprogress"
:
"0.2.0"
,
"quill"
:
"
1.3.7
"
,
"quill"
:
"
2.0.2
"
,
"screenfull"
:
"5.0.2"
,
"sortablejs"
:
"1.10.2"
,
"vue"
:
"2.6.12"
,
...
...
ruoyi-ui/src/components/Editor/index.vue
View file @
dc9f3ee7
...
...
@@ -108,7 +108,7 @@ export default {
if
(
val
!==
this
.
currentValue
)
{
this
.
currentValue
=
val
===
null
?
""
:
val
;
if
(
this
.
Quill
)
{
this
.
Quill
.
p
asteHTML
(
this
.
currentValue
);
this
.
Quill
.
clipboard
.
dangerouslyP
asteHTML
(
this
.
currentValue
);
}
}
},
...
...
@@ -136,7 +136,7 @@ export default {
}
});
}
this
.
Quill
.
p
asteHTML
(
this
.
currentValue
);
this
.
Quill
.
clipboard
.
dangerouslyP
asteHTML
(
this
.
currentValue
);
this
.
Quill
.
on
(
"text-change"
,
(
delta
,
oldDelta
,
source
)
=>
{
const
html
=
this
.
$refs
.
editor
.
children
[
0
].
innerHTML
;
const
text
=
this
.
Quill
.
getText
();
...
...
ruoyi-ui/vue.config.js
View file @
dc9f3ee7
...
...
@@ -27,6 +27,7 @@ module.exports = {
lintOnSave
:
process
.
env
.
NODE_ENV
===
'development'
,
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
productionSourceMap
:
false
,
transpileDependencies
:
[
'quill'
],
// webpack-dev-server 相关配置
devServer
:
{
host
:
'0.0.0.0'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment