Can "component" be an anonymous function when vue-router defines a route?

the official documentation says that "component" can be a component constructor created by Vue.extend (), or just a component configuration object.
but as shown in the code, the "component" here is an anonymous function, and the function body loads the subcomponents asynchronously with import (). Is that okay?
{

path: "tourcard-gardenOrder",
title: "",
name: "tourcard-gardenOrder",
component: () =>
    import ("@/views/tourcard/tourcard-gardenOrder/tourcard-gardenOrder.vue")

}

Mar.13,2021

can be written like this


import function returns a Promise object, and a module is saved inside the object, which is an object obtained after parsing and compiling the .vue file

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