master
lion 3 months ago
parent 4583c43447
commit f66d5dc446

@ -13,7 +13,7 @@
</template> </template>
<template v-slot:company_ids> <template v-slot:company_ids>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label">活动关联方</div> <div class="xy-table-item-label">活动关联方2</div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<Button <Button
type="primary" type="primary"
@ -894,8 +894,12 @@ export default {
sort:this.form.sort, sort:this.form.sort,
content: (() => { content: (() => {
let content = this.form.content || '' let content = this.form.content || ''
// request.js VUE_APP_BASE_API线
const runtimeBase = window.location.origin.indexOf('localhost') > -1
? (process.env.VUE_APP_BASE_API || '')
: (window.location.origin + '/')
// / //storage/files // / //storage/files
const apiBase = (process.env.VUE_APP_BASE_API || '').replace(/\/$/, '') const apiBase = runtimeBase.replace(/\/$/, '')
const baseUrl = `${apiBase}/storage/files/` const baseUrl = `${apiBase}/storage/files/`
// img src /storage/files ../storage/files http(s) // img src /storage/files ../storage/files http(s)
content = content.replace( content = content.replace(
@ -952,7 +956,10 @@ export default {
sort:this.form.sort, sort:this.form.sort,
content: (() => { content: (() => {
let content = this.form.content || '' let content = this.form.content || ''
const apiBase = (process.env.VUE_APP_BASE_API || '').replace(/\/$/, '') const runtimeBase = window.location.origin.indexOf('localhost') > -1
? (process.env.VUE_APP_BASE_API || '')
: (window.location.origin + '/')
const apiBase = runtimeBase.replace(/\/$/, '')
const baseUrl = `${apiBase}/storage/files/` const baseUrl = `${apiBase}/storage/files/`
content = content.replace( content = content.replace(
/(<img[^>]+src=["'])(?:\.\.\/)?\/?storage\/files\/([^"']+)(["'][^>]*>)/g, /(<img[^>]+src=["'])(?:\.\.\/)?\/?storage\/files\/([^"']+)(["'][^>]*>)/g,

@ -602,8 +602,12 @@
end_time: this.form.time[1], end_time: this.form.time[1],
content: (() => { content: (() => {
let content = this.form.content || '' let content = this.form.content || ''
// request.js VUE_APP_BASE_API线
const runtimeBase = window.location.origin.indexOf('localhost') > -1
? (process.env.VUE_APP_BASE_API || '')
: (window.location.origin + '/')
// / //storage/files // / //storage/files
const apiBase = (process.env.VUE_APP_BASE_API || '').replace(/\/$/, '') const apiBase = runtimeBase.replace(/\/$/, '')
const baseUrl = `${apiBase}/storage/files/` const baseUrl = `${apiBase}/storage/files/`
// img src /storage/files ../storage/files // img src /storage/files ../storage/files
content = content.replace( content = content.replace(
@ -650,7 +654,10 @@
end_time: this.form.time[1], end_time: this.form.time[1],
content: (() => { content: (() => {
let content = this.form.content || '' let content = this.form.content || ''
const apiBase = (process.env.VUE_APP_BASE_API || '').replace(/\/$/, '') const runtimeBase = window.location.origin.indexOf('localhost') > -1
? (process.env.VUE_APP_BASE_API || '')
: (window.location.origin + '/')
const apiBase = runtimeBase.replace(/\/$/, '')
const baseUrl = `${apiBase}/storage/files/` const baseUrl = `${apiBase}/storage/files/`
content = content.replace( content = content.replace(
/(<img[^>]+src=["'])(?:\.\.\/)?\/?storage\/files\/([^"']+)(["'][^>]*>)/g, /(<img[^>]+src=["'])(?:\.\.\/)?\/?storage\/files\/([^"']+)(["'][^>]*>)/g,
@ -757,6 +764,4 @@
top: 1px; top: 1px;
left: 4%; left: 4%;
} }
</style> </style>
Loading…
Cancel
Save