mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Fix: Correct redirect usage
This commit is contained in:
parent
aae0673a3d
commit
d4c7ebfafe
1 changed files with 5 additions and 5 deletions
|
@ -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 a new issue