|
@@ -35,7 +35,7 @@
|
|
|
<el-tooltip class="item" effect="dark" content="点击上传图片" placement="top-end">
|
|
<el-tooltip class="item" effect="dark" content="点击上传图片" placement="top-end">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
|
- action="//oss.reghao.cn/"
|
|
|
|
|
|
|
+ :action="actionUrl"
|
|
|
:headers="imgHeaders"
|
|
:headers="imgHeaders"
|
|
|
:data="imgData"
|
|
:data="imgData"
|
|
|
:with-credentials="true"
|
|
:with-credentials="true"
|
|
@@ -121,9 +121,10 @@ export default {
|
|
|
name: 'PublishVideo',
|
|
name: 'PublishVideo',
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ actionUrl: process.env.VUE_APP_OSS_URL,
|
|
|
// ****************************************************************************************************************
|
|
// ****************************************************************************************************************
|
|
|
options: {
|
|
options: {
|
|
|
- target: '//oss.reghao.cn/',
|
|
|
|
|
|
|
+ target: process.env.VUE_APP_OSS_URL,
|
|
|
chunkSize: 1024 * 1024 * 1024 * 10, // 10GiB
|
|
chunkSize: 1024 * 1024 * 1024 * 10, // 10GiB
|
|
|
fileParameterName: 'file',
|
|
fileParameterName: 'file',
|
|
|
testChunks: false,
|
|
testChunks: false,
|
|
@@ -338,7 +339,7 @@ export default {
|
|
|
const formData = new FormData()
|
|
const formData = new FormData()
|
|
|
formData.append('file', coverFile)
|
|
formData.append('file', coverFile)
|
|
|
formData.append('channelId', 5)
|
|
formData.append('channelId', 5)
|
|
|
- fetch(`//oss.reghao.cn/`, {
|
|
|
|
|
|
|
+ fetch(process.env.VUE_APP_OSS_URL, {
|
|
|
headers: this.imgHeaders,
|
|
headers: this.imgHeaders,
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
credentials: 'include',
|
|
credentials: 'include',
|