fix: 打包报错问题修复

Former-commit-id: 88a4220b4a10e3be4a8ef288144e8c8c24638a4a
This commit is contained in:
haoxr
2022-12-31 23:02:14 +08:00
parent f79651618e
commit 1ecf0663e6
4 changed files with 3 additions and 5 deletions

View File

@@ -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 => {