Hi Team:
I found a bug
When I go to firstpage
And go to demo1's subscription-list
if my data has data it is ok to click Actions
but if my init data is empyt it will go back to homepage
https://youtu.be/7U32Y9kIN7U
http://203.204.37.201:8080/#/dashboard
to
Subscription List
click
Actions
Redirect to dashboard
but if i refresh at http://203.204.37.201:8080/#/apps/subscriptions/subscription-list
It is ok
Hi Ting,
It might be related to MenuComponent initialization. Could you please try to call MenuComponent.reinitialization()
function inside your component onMounted?
onMounted(() => {
MenuComponent.reinitialization();
});
Hi Team:
It Works
import { MenuComponent } from "../../assets/ts/components";
onMounted(async () => {
await ApiService.query("get_data", {}).then((response) => {
console.log(response);
data.value = response.data;
});
MenuComponent.reinitialization();
});
Glad to hear that. All the best with your project!