|
|
@ -21,7 +21,7 @@ export default function useNav() {
|
|
|
|
queryStr += `?${queryArr.join('&')}`;
|
|
|
|
queryStr += `?${queryArr.join('&')}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
window.location.href = `${path}.html${queryStr}`;
|
|
|
|
window.location.href = `${path === '/' ? '/index' : path}.html${queryStr}`;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
router.push(`${path}${queryStr}`);
|
|
|
|
router.push(`${path}${queryStr}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|