|
@@ -219,10 +219,11 @@ export default {
|
|
|
imageInsertAlign: 'none',
|
|
|
imageMaxSize: 20480000,
|
|
|
// 访问 UEditor 静态资源的根路径,可参考 https://hc199421.gitee.io/vue-ueditor-wrap/#/faq
|
|
|
- UEDITOR_HOME_URL: '/UEditor/',
|
|
|
+ UEDITOR_HOME_URL: process.env.NODE_ENV === 'development' ? '/UEditor/' : `/factoring-trade/UEditor/`,
|
|
|
// 服务端接口(这个地址是我为了方便各位体验文件上传功能搭建的临时接口,请勿在生产环境使用!!!)
|
|
|
// serverUrl: 'https://ueditor.zhenghaochuan.com/cos',
|
|
|
- serverUrl: `${process.env.VUE_APP_BASE_API}/fileStorage/getUeconfig`
|
|
|
+ serverUrl: process.env.NODE_ENV === 'development' ? `${process.env.VUE_APP_BASE_API}/fileStorage/getUeconfig` : '/tradeV4-backend/fileStorage/getUeconfig',
|
|
|
+ uploadUrl: process.env.NODE_ENV === 'development' ? `${process.env.VUE_APP_BASE_API}/fileStorage/imgUpload` : '/tradeV4-backend/fileStorage/imgUpload'
|
|
|
// headers: {
|
|
|
// Authorization: '',
|
|
|
// tenantId: ''
|
|
@@ -251,6 +252,9 @@ export default {
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ console.log(process.env.NODE_ENV === 'development')
|
|
|
+ },
|
|
|
methods: {
|
|
|
getUEContent() {
|
|
|
return this.ueditor
|