670加入机器状态、设备详情加接口请求
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
<script>
|
||||
import Common from '@/utils/Common';
|
||||
|
||||
import request,{ baseURL } from '@/utils/request.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -123,15 +123,19 @@
|
||||
|
||||
let p2 = new Promise((resolve, reject) => {
|
||||
let start = new Date();
|
||||
console.log("Common.baseURL=" + Common.baseURL);
|
||||
console.log("baseURL=" + baseURL);
|
||||
const token ="";// uni.getStorageSync('token');
|
||||
const clientid ="";// uni.getStorageSync('clientID');
|
||||
uni.uploadFile({
|
||||
// url: Common.baseURL + 'video/upload',
|
||||
url:'http://192.168.110.56:8000/app/video/upload',
|
||||
url: 'http://114.55.111.217/video/upload',
|
||||
// url:baseURL+"/app/video/upload",
|
||||
filePath: this.videoPath,
|
||||
name: 'file',
|
||||
header: {
|
||||
"Method": "POST",
|
||||
"Content-Type": "multipart/form-data"
|
||||
"Content-Type": "multipart/form-data",
|
||||
"Authorization": 'Bearer ' + token,
|
||||
"clientid": clientid
|
||||
},
|
||||
timeout: 600000,
|
||||
fail: (ex) => {
|
||||
|
||||
Reference in New Issue
Block a user