fix: 打包报错问题修复
Former-commit-id: 88a4220b4a10e3be4a8ef288144e8c8c24638a4a
This commit is contained in:
@@ -18,7 +18,7 @@ const props = defineProps({
|
||||
|
||||
const router = useRouter();
|
||||
function push() {
|
||||
if (device.value === DeviceType.mobile && sidebar.value.opened == true) {
|
||||
if (device.value === 'mobile' && sidebar.value.opened == true) {
|
||||
appStore.closeSideBar(false);
|
||||
}
|
||||
router.push(props.to).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user