feat: add a calculation and update selectors param (#53)

This commit is contained in:
Fine0830
2022-04-01 23:28:39 +08:00
committed by GitHub
parent fce818aebe
commit f57fdf9312
10 changed files with 91 additions and 33 deletions

View File

@@ -66,7 +66,7 @@ const theme = ref<string>("light");
getVersion();
const setConfig = (value: string) => {
pageName.value = value || "";
theme.value = route.path.includes("/infrastructure/") ? "dark" : "light";
// theme.value = route.path.includes("/infrastructure/") ? "dark" : "light";
};
const time = computed(() => [
appStore.durationRow.start,
@@ -94,6 +94,9 @@ watch(
}
);
async function getVersion() {
if (appStore.version) {
return;
}
const res = await appStore.fetchVersion();
if (res.errors) {
ElMessage.error(res.errors);