富文本编辑上传图片
This commit is contained in:
@@ -44,7 +44,31 @@
|
||||
<img width="100%" :src="dataForm.image" alt="" />
|
||||
</el-dialog>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<div style="height: auto;margin-bottom: 80px;">
|
||||
<el-form-item label="内容" prop="url">
|
||||
<el-upload
|
||||
class="chapter-avatar-uploader"
|
||||
:action="baseUrl + '/oss/fileoss'"
|
||||
accept=".jpeg,.jpg,.gif,.png"
|
||||
:show-file-list="false"
|
||||
:on-success="contentUploadSuccess"
|
||||
>
|
||||
</el-upload>
|
||||
<quill-editor
|
||||
v-model="dataForm.content"
|
||||
ref="myQuillEditor"
|
||||
style="height: 400px;"
|
||||
:options="editorOption"
|
||||
@blur="onEditorBlur($event)"
|
||||
@focus="onEditorFocus($event)"
|
||||
@ready="onEditorReady($event)"
|
||||
class="chapter_editor"
|
||||
>
|
||||
</quill-editor>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<!-- <el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="作者" prop="authorId">
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
style="height: 100%;"
|
||||
>
|
||||
<add-or-update
|
||||
v-if="currentTab==i"
|
||||
:dataInfo="v"
|
||||
:type="type"
|
||||
:currentTab="currentTab"
|
||||
style="height: calc(100vh - 180px)"
|
||||
:ref="`addOrUpdate${v.id}`"
|
||||
@refreshDataList="getDataList"
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
style="height: 100%;"
|
||||
>
|
||||
<add-or-update
|
||||
v-if="currentTab==i"
|
||||
:dataInfo="v"
|
||||
:type="type"
|
||||
:currentTab="currentTab"
|
||||
style="height: calc(100vh - 180px)"
|
||||
:ref="`addOrUpdate${v.id}`"
|
||||
@refreshDataList="getDataList"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
// api接口请求地址
|
||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';//张川川
|
||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
||||
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
||||
// window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
||||
window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';//磊哥
|
||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
||||
|
||||
Reference in New Issue
Block a user