0.2.24 • Published 4 years ago
trendnet_device_preset v0.2.24
trendnet_device_preset
Using npm
npm install trendnet_device_preset --save
Config
#1
// run local
axios.defaults.baseURL = process.env.VUE_APP_BASE_API
// connect to cloud
axios.defaults.baseURL = process.env.BASE_API
#2
// run local
VUE_APP_BASE_API=YOUR_LOCAL_API_SERVER_ADDRESS
// connect to cloud (nothing to do)
How To
// run local
<template>
<div id="switch"></div>
</template>
<script>
import { TrendnetDevicePreset } from './../lib/index'
export default {
mounted () {
TrendnetDevicePreset('#switch')
}
}
</script>
// connect to cloud
<template>
<div id="switch"></div>
</template>
import { TrendnetDevicePreset } from 'trendnet_device_preset'
export default {
mounted () {
TrendnetDevicePreset('#switch')
}
}
Params
@param (string) element id
Customize configuration
0.2.24
4 years ago
0.2.23
4 years ago
0.2.22
4 years ago
0.2.21
4 years ago
0.2.20
4 years ago
0.2.19
4 years ago
0.2.18
4 years ago
0.2.17
4 years ago
0.2.16
4 years ago
0.2.15
4 years ago
0.2.14
4 years ago
0.2.13
4 years ago
0.2.12
4 years ago
0.2.11
4 years ago
0.2.10
4 years ago
0.2.9
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.1
4 years ago
0.2.2
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago