The problem of wepy components getting global globalData objects

at present, when Mini Program"s wepy framework component acquires a global globaldata object, it needs this.$parent.$parent;
. Is there any way to do function processing in a file, and which gloabaldata object can you directly go to when this function is returned?


get global globalData wepy.$instance.globalData
when do you need this.parent.parent

import wepy from 'wepy'
export const getGlobalData = function(){
    return wepy.$instance.globalData;
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35629-2acd3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35629-2acd3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?