This commit is contained in:
Qiuxia Fan 2022-05-13 13:21:01 +08:00
parent 56221c6a42
commit e86d768385

View File

@ -117,7 +117,7 @@ const name = ref<string>(String(useRouter().currentRoute.value.name));
const theme = ["VirtualMachine", "Kubernetes"].includes(name.value || "")
? ref("light")
: ref("black");
const routes = ref<RouteRecordRaw[]>(useRouter().options.routes);
const routes = ref<RouteRecordRaw[] | any>(useRouter().options.routes);
if (/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
appStore.setIsMobile(true);
} else {