(https://gitee.com/daidaibg/IofTV-Screen)** You can learn how to use the project from the above link.
You can download the backend of the Vue project from server folder.
install:
npm install
run:
npm start
build:
npm run build
Final results:
Here is the vue component's structure which i had changed.
Data() {
return {
Lists=[]
}
}
Mounted() {
GET
}
Methods: {
GET() {
If (sth changed) {
Init() {}
}
else: do nothing
Switer
}
Switer() {
setInterval,
GET
}
}