修改请求方法名称

master
夜笙歌 6 days ago
parent 675cdb1c79
commit 91814231b2

@ -358,7 +358,7 @@ export default {
this.$set(this.requests[k], 'connectionStatus', 0) this.$set(this.requests[k], 'connectionStatus', 0)
getHistoryData({ getHistoryData({
deviceModeId: i.deviceModeId, deviceModeId: i.deviceModeId,
functionIdentifier: i.functionIdentifier + '1', functionIdentifier: i.functionIdentifier,
interval: i.interval, interval: i.interval,
"sceneId": 144, "sceneId": 144,
"deviceId": i.deviceId, "deviceId": i.deviceId,
@ -474,7 +474,7 @@ export default {
if (!this.requests?.[k]?.request) { if (!this.requests?.[k]?.request) {
getHistoryData({ getHistoryData({
deviceModeId: i.deviceModeId, deviceModeId: i.deviceModeId,
functionIdentifier: i.functionIdentifier + '1', functionIdentifier: i.functionIdentifier ,
interval: i.interval, interval: i.interval,
"sceneId": 144, "sceneId": 144,
"deviceId": i.deviceId, "deviceId": i.deviceId,

@ -30,7 +30,7 @@ const mappingFunction = async (data, method) => {
if (data.type === 2) { if (data.type === 2) {
let res2 = await getHistoryData({ let res2 = await getHistoryData({
deviceModeId: data.deviceModeId, deviceModeId: data.deviceModeId,
functionIdentifier: data.functionIdentifier + '1', functionIdentifier: data.functionIdentifier ,
interval: data.interval, interval: data.interval,
"sceneId": 144, "sceneId": 144,
"deviceId": data.deviceId, "deviceId": data.deviceId,

@ -187,7 +187,7 @@
<el-form-item label="画布背景" label-width="120px"> <el-form-item label="画布背景" label-width="120px">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="dev-api/basic/hwTemplateAchieve/saveImage" :action="(process.env.NODE_ENV === 'development'?'dev-api':'prod-api')+'/basic/hwTemplateAchieve/saveImage'"
:headers="{ :headers="{
authorization:'Bearer ' + getToken() authorization:'Bearer ' + getToken()
}" }"

@ -81,7 +81,7 @@
<el-form-item label="背景" label-width="80px"> <el-form-item label="背景" label-width="80px">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
action="dev-api/basic/hwTemplateAchieve/saveImage" :action="(process.env.NODE_ENV === 'development'?'dev-api':'prod-api')+'/basic/hwTemplateAchieve/saveImage'"
:headers="{ :headers="{
authorization:'Bearer ' + getToken() authorization:'Bearer ' + getToken()
}" }"

Loading…
Cancel
Save