Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
train-admin-h5
Overview
Overview
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
tangjiale
train-admin-h5
Commits
e8d3f8c7
Commit
e8d3f8c7
authored
Jun 27, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
13642980
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
c-quill-editor.vue
components/common/c-quill-editor.vue
+5
-3
index.js
plugins/index.js
+4
-1
No files found.
components/common/c-quill-editor.vue
View file @
e8d3f8c7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-27 14:10:41
* @Date: 2022-06-27 14:10:41
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-27 1
5:11:42
* @LastEditTime: 2022-06-27 1
6:11:45
-->
-->
<
template
>
<
template
>
<div
style=
"width:100%"
>
<div
style=
"width:100%"
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
class=
"avatar-uploader quill-img"
class=
"avatar-uploader quill-img"
name=
"imageFile"
name=
"imageFile"
:before-upload=
"getcloudDataMthod"
:before-upload=
"getcloudDataMthod"
:action=
"
pictureUrl
"
:action=
"
$config.baseUrl + '/common/image'
"
:multiple=
"false"
:multiple=
"false"
:show-file-list=
"false"
:show-file-list=
"false"
:on-success=
"uploadSuccess"
:on-success=
"uploadSuccess"
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
data
(){
data
(){
const
_this
=
this
const
_this
=
this
return
{
return
{
pictureUrl
:
'
https://test.xiaobentiyu.cn/pxpcapi/common/image
'
,
pictureUrl
:
''
,
uploadHeadData
:
null
,
uploadHeadData
:
null
,
editorOption
:
{
editorOption
:
{
theme
:
'snow'
,
theme
:
'snow'
,
...
@@ -77,6 +77,8 @@ export default {
...
@@ -77,6 +77,8 @@ export default {
},
},
}
}
},
},
mounted
(){
},
methods
:
{
methods
:
{
async
getcloudDataMthod
(
file
)
{
async
getcloudDataMthod
(
file
)
{
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
...
...
plugins/index.js
View file @
e8d3f8c7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-02-10 15:24:49
* @Date: 2022-02-10 15:24:49
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
4 10:12:52
* @LastEditTime: 2022-06-2
7 16:11:14
*/
*/
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
// require('./flexiable');
// require('./flexiable');
...
@@ -25,6 +25,9 @@ import 'quill/dist/quill.bubble.css'
...
@@ -25,6 +25,9 @@ import 'quill/dist/quill.bubble.css'
//富文本编辑器添加实例
//富文本编辑器添加实例
Vue
.
use
(
VueQuillEditor
)
Vue
.
use
(
VueQuillEditor
)
//配置对象
let
config
=
require
(
`@/config/
${
process
.
env
.
ENV_CONFIG
||
'pro'
}
.config.json`
);
Vue
.
prototype
.
$config
=
config
Vue
.
prototype
.
$showConfirm
=
msg
=>
Vue
.
prototype
.
$confirm
(
msg
||
'是否确定删除对应的记录?'
,
'提示'
,
{
type
:
'warning'
});
Vue
.
prototype
.
$showConfirm
=
msg
=>
Vue
.
prototype
.
$confirm
(
msg
||
'是否确定删除对应的记录?'
,
'提示'
,
{
type
:
'warning'
});
Vue
.
prototype
.
$notifySuccess
=
msg
=>
Vue
.
prototype
.
$notify
.
success
({
Vue
.
prototype
.
$notifySuccess
=
msg
=>
Vue
.
prototype
.
$notify
.
success
({
...
...
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