|
@@ -99,6 +99,7 @@ import { uploadFile, createUploadVideo, uploadFileByDoctor } from '@/api/ShortVi
|
|
|
import upLoaderImg from '../../assets/js/common/uploaderImg'
|
|
|
import { Toast } from 'vant'
|
|
|
import axios from 'axios'
|
|
|
+var host = process.env.VUE_APP_Host; // 获取不同环境下不同的api路径
|
|
|
export default {
|
|
|
name: "UploadFile",
|
|
|
inject: ['reload'],
|
|
@@ -235,7 +236,7 @@ export default {
|
|
|
userId: self.userId,
|
|
|
// 开始上传
|
|
|
onUploadstarted: function (uploadInfo) {
|
|
|
- let createUrl = `http://linyi.natapp1.cc/api/Program/CreateUploadVideo?Title=${self.Title}`
|
|
|
+ let createUrl = host +`/api/Program/CreateUploadVideo?Title=${self.Title}`
|
|
|
axios.post(createUrl).then(({ data }) => {
|
|
|
let uploadAuth = data.ResultObject.UploadAuth
|
|
|
let uploadAddress = data.ResultObject.UploadAddress
|