Files
scrypted/plugins/core/ui/src/components/ScriptComponent.vue
2022-11-26 12:01:51 -08:00

13 lines
306 B
Vue

<template>
</template>
<script>
import { findPluginDevice, getDeviceViewPath } from "./helpers";
export default {
async mounted() {
const core = findPluginDevice(this.$scrypted.systemManager, '@scrypted/core', 'scriptcore');
this.$router.replace(getDeviceViewPath(core.id));
},
};
</script>