This commit is contained in:
Qiuxia Fan 2022-03-24 20:52:37 +08:00
parent eae9926ae7
commit 0ee893f735
3 changed files with 5 additions and 5 deletions

View File

@ -131,11 +131,11 @@ export default defineComponent({
function applyConfig() { function applyConfig() {
dashboardStore.setConfigPanel(false); dashboardStore.setConfigPanel(false);
setStatus(true); setStatus();
dashboardStore.setConfigs(dashboardStore.selectedGrid); dashboardStore.setConfigs(dashboardStore.selectedGrid);
} }
function setStatus(p: boolean) { function setStatus() {
isEdit.value = true; isEdit.value = true;
} }

View File

@ -283,7 +283,7 @@ function changeMetrics(
...{ metricTypes: states.metricTypes, metrics: states.metrics }, ...{ metricTypes: states.metricTypes, metrics: states.metrics },
}); });
if (states.isList) { if (states.isList) {
emit("changeOpt", true); emit("changeOpt");
return; return;
} }
queryMetrics(); queryMetrics();
@ -314,7 +314,7 @@ function changeMetricType(index: number, opt: Option[] | any) {
...{ metricTypes: states.metricTypes }, ...{ metricTypes: states.metricTypes },
}); });
if (states.isList) { if (states.isList) {
emit("changeOpt", true); emit("changeOpt");
return; return;
} }
queryMetrics(); queryMetrics();

View File

@ -93,7 +93,7 @@ import { EntityType } from "../data";
import router from "@/router"; import router from "@/router";
import getDashboard from "@/hooks/useDashboardsSession"; import getDashboard from "@/hooks/useDashboardsSession";
/*global defineProps, defineEmits */ /*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object, type: Object,