route คู่มือ
This commit is contained in:
parent
18eb7fc2f0
commit
c91fffe2da
2 changed files with 28 additions and 11 deletions
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue