Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
28ed6a6c
Commit
28ed6a6c
authored
Sep 08, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改富文本图片上传
parent
0ada2b45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
21 deletions
+9
-21
base-manager-ui/admin/src/components/YQuillEditor.vue
base-manager-ui/admin/src/components/YQuillEditor.vue
+9
-7
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
...r-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
+0
-14
No files found.
base-manager-ui/admin/src/components/YQuillEditor.vue
View file @
28ed6a6c
...
...
@@ -2,13 +2,16 @@
<div
style=
"margin-bottom: 25px"
class=
"y-quill"
:style=
"
{ height: height }">
<!-- 图片上传组件辅助-->
<a-upload
name=
"
uploadF
ile"
name=
"
f
ile"
:multiple=
"true"
:headers=
"headers"
:headers=
"
{
Authorization: token,
}"
:show-upload-list="false"
:action="serverUrl"
@change="handleChange"
:before-upload="beforeUpload"
:accept="accept"
>
</a-upload>
<!-- 富文本 -->
...
...
@@ -24,7 +27,7 @@
</div>
</
template
>
<
script
>
import
local
from
"
@/utils/local
"
;
import
{
mapGetters
}
from
"
vuex
"
;
// 工具栏配置
const
toolbarOptions
=
[
[
"
bold
"
,
"
italic
"
,
"
underline
"
,
"
strike
"
],
// 加粗 斜体 下划线 删除线
...
...
@@ -104,6 +107,7 @@ export default {
data
()
{
return
{
accept
:
"
image/png,image/gif,image/jpeg
"
,
quillUpdateImg
:
false
,
// 根据图片上传状态来确定是否显示loading动画,刚开始是false,不显示
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
editorOption
:
{
...
...
@@ -142,10 +146,7 @@ export default {
},
},
},
serverUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/file/commonupload
"
,
// 这里写你要上传的图片服务器地址
headers
:
{
Authorization
:
local
.
getLocal
(
"
token
"
),
},
serverUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/base/file/commonupload
"
,
// 这里写你要上传的图片服务器地址
};
},
computed
:
{
...
...
@@ -157,6 +158,7 @@ export default {
this
.
$emit
(
"
input
"
,
val
);
},
},
...
mapGetters
(
"
site
"
,
[
"
token
"
]),
},
methods
:
{
onEditorBlur
()
{
...
...
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
View file @
28ed6a6c
...
...
@@ -328,20 +328,6 @@ export default {
padding: 24px;
flex: 1;
overflow-y: auto;
&::-webkit-scrollbar {
width: 12px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
}
.content {
align-items: flex-start !important;
...
...
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