fix: menuModel

This commit is contained in:
lrl 2021-12-14 22:04:52 +08:00
parent 77c798eaed
commit 05ed941638

View File

@ -272,9 +272,10 @@ function dynamicRouteTag(value: string, parentPath: string): void {
// //
function onFresh() { function onFresh() {
toggleClass(true, refreshButton, document.querySelector(".rotate")); toggleClass(true, refreshButton, document.querySelector(".rotate"));
const { fullPath } = unref(route); const { fullPath, query } = unref(route);
router.replace({ router.replace({
path: "/redirect" + fullPath path: "/redirect" + fullPath,
query: query
}); });
setTimeout(() => { setTimeout(() => {
removeClass(document.querySelector(".rotate"), refreshButton); removeClass(document.querySelector(".rotate"), refreshButton);