提交 65fbf1f0 authored 作者: 游洋澄's avatar 游洋澄

demo 更新

上级 fcd772ce
import { axios } from '@/utils/request' import { axios } from '@/utils/request'
export function getDemonstrationInfo (maxsize) { // '23230ef5-e9f8-40ca-b196-d7ab493bafbd'
export function getDemonstrationInfo (featureId, maxsize) {
return axios({ return axios({
baseURL: process.env.VUE_APP_API_BASE_URL, baseURL: process.env.VUE_APP_API_BASE_URL,
url: '/boya/devices/v1/feature/23230ef5-e9f8-40ca-b196-d7ab493bafbd/next', url: '/boya/devices/v1/feature/' + featureId + '/next',
method: 'get', method: 'get',
params: { params: {
// token: Vue.ls.get(ACCESS_TOKEN) // token: Vue.ls.get(ACCESS_TOKEN)
......
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
start () { start () {
const _this = this const _this = this
const clock = setInterval(function () { const clock = setInterval(function () {
getDemonstrationInfo(_this.maxsize) getDemonstrationInfo('23230ef5-e9f8-40ca-b196-d7ab493bafbd', _this.maxsize)
.then(res => { .then(res => {
_this.demoData1Array.push(res[0]) _this.demoData1Array.push(res[0])
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论