Commit e8d3f8c7 by tangjiale

更新代码

parent 13642980
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-27 14:10:41
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-27 15:11:42
* @LastEditTime: 2022-06-27 16:11:45
-->
<template>
<div style="width:100%">
......@@ -21,7 +21,7 @@
class="avatar-uploader quill-img"
name="imageFile"
:before-upload="getcloudDataMthod"
:action="pictureUrl"
:action="$config.baseUrl + '/common/image'"
:multiple="false"
:show-file-list="false"
:on-success="uploadSuccess"
......@@ -56,7 +56,7 @@ export default {
data(){
const _this = this
return {
pictureUrl: 'https://test.xiaobentiyu.cn/pxpcapi/common/image',
pictureUrl: '',
uploadHeadData:null,
editorOption: {
theme: 'snow',
......@@ -77,6 +77,8 @@ export default {
},
}
},
mounted(){
},
methods: {
async getcloudDataMthod(file) {
let formData = new FormData();
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-10 15:24:49
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-24 10:12:52
* @LastEditTime: 2022-06-27 16:11:14
*/
import Vue from 'vue';
// require('./flexiable');
......@@ -25,6 +25,9 @@ import 'quill/dist/quill.bubble.css'
//富文本编辑器添加实例
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.$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