@@ -364,7 +364,8 @@ async function refreshData(deviceId: string) {
}
onMounted(() => {
- const path = route.query.deviceType;
+ const path = route.query.deviceType as string;
+ deviceType.value = path;
if (path) {
getDeviceType(path);
getDeviceList(path);