首页添加生命周期构子onShow
This commit is contained in:
parent
cf76b88165
commit
ccb23a9dfe
|
|
@ -104,6 +104,12 @@ export default {
|
||||||
this.fetchDeviceList()
|
this.fetchDeviceList()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onShow() {
|
||||||
|
this.fetchAnnouncement()
|
||||||
|
this.fetchBannerList()
|
||||||
|
this.fetchDeviceList()
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// 获取最新公告
|
// 获取最新公告
|
||||||
async fetchAnnouncement() {
|
async fetchAnnouncement() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user