The arrow function in vue assigns a value to a variable getNews, other file importgetNews method, how to pass parameters through getNews

api/index.js function definition

clipboard.png

News.vue

clipboard.png

idundefined

clipboard.png

May.28,2021

are you sure self.cateID has a value when calling?


print console.log (self.cateID) in created of News.vue . It doesn't feel like there is no input parameter, but the parameter self.cateID itself is undefined .

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-1b41c67-eb0b.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-1b41c67-eb0b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?