Commit e8d3f8c7 by tangjiale

更新代码

parent 13642980
...@@ -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 15:11:42 * @LastEditTime: 2022-06-27 16: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();
......
...@@ -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-24 10:12:52 * @LastEditTime: 2022-06-27 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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment