0.2.24 • Published 5 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
5 years ago
0.2.23
5 years ago
0.2.22
5 years ago
0.2.21
5 years ago
0.2.20
5 years ago
0.2.19
5 years ago
0.2.18
5 years ago
0.2.17
5 years ago
0.2.16
5 years ago
0.2.15
5 years ago
0.2.14
5 years ago
0.2.13
5 years ago
0.2.12
5 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.1
5 years ago
0.2.2
5 years ago
0.2.0
5 years ago
0.1.0
5 years ago