mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
Fix: Correct redirect usage
This commit is contained in:
parent
aae0673a3d
commit
d4c7ebfafe
@ -12,12 +12,12 @@ export default {
|
||||
components: {
|
||||
MonitorList,
|
||||
},
|
||||
};
|
||||
|
||||
mobile.methods.onResize();
|
||||
if (!mobile.computed.isMobile(mobile.methods.windowWidth) && window.location.pathname === "/list") {
|
||||
window.location.href = "/dashboard";
|
||||
async mounted() {
|
||||
if (!mobile.computed.isMobile()) {
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
Loading…
Reference in New Issue
Block a user