problem description
background:
vue.js project requires an asynchronous request to get the configuration, which is used on many pages.
description:
after verifying login information, you need to request some configuration items from the server. This configuration is defined by some fields, such as
{
"config": {
"x": 1,
"y": 2
}
}
so how do you ensure that the page is not rendered until the asynchronous request is successfully fetched?