route คู่มือ

This commit is contained in:
setthawutttty 2024-11-15 13:16:11 +07:00
parent 18eb7fc2f0
commit c91fffe2da
2 changed files with 28 additions and 11 deletions

View file

@ -208,13 +208,13 @@ const thaiOptions: Intl.DateTimeFormatOptions = {
minute: "2-digit",
};
const handleButtonClick = () => {
const handleButtonClick = async () => {
const currentPath = route.name;
const queryParams = { role: "user" }; // Replace with your query parameters
const queryString = new URLSearchParams(queryParams).toString();
const type = await dataStore.getProFileType()
// Assuming config.generatePopupPath() returns a base URL
const popupBasePath = config.generatePopupPath(currentPath);
const popupBasePath = config.generatePopupPath(currentPath,type);
if (popupBasePath) {
const popupPath = `${popupBasePath}?${queryString}`;