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