master
lion 1 month ago
parent 4583c43447
commit f66d5dc446

@ -13,7 +13,7 @@
</template>
<template v-slot:company_ids>
<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">
<Button
type="primary"
@ -894,8 +894,12 @@ export default {
sort:this.form.sort,
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
const apiBase = (process.env.VUE_APP_BASE_API || '').replace(/\/$/, '')
const apiBase = runtimeBase.replace(/\/$/, '')
const baseUrl = `${apiBase}/storage/files/`
// img src /storage/files ../storage/files http(s)
content = content.replace(
@ -952,7 +956,10 @@ export default {
sort:this.form.sort,
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/`
content = content.replace(
/(<img[^>]+src=["'])(?:\.\.\/)?\/?storage\/files\/([^"']+)(["'][^>]*>)/g,

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