修改请求方法名称

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

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

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

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

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

Loading…
Cancel
Save