fix: update style

This commit is contained in:
Fine 2023-02-07 14:47:44 +08:00
parent 6d0c336e5b
commit 37a14adbd4
5 changed files with 3 additions and 5 deletions

View File

@ -25,5 +25,6 @@ limitations under the License. -->
.app-main { .app-main {
height: calc(100% - 40px); height: calc(100% - 40px);
background: #f7f9fa; background: #f7f9fa;
overflow: auto;
} }
</style> </style>

View File

@ -77,14 +77,14 @@ limitations under the License. -->
init(); init();
async function init() { async function init() {
dashboardStore.setLayer(route.params.layer);
dashboardStore.setEntity(route.params.entity);
const { auto } = config.value; const { auto } = config.value;
if (auto) { if (auto) {
await setDuration(); await setDuration();
appStoreWithOut.setReloadTimer(setInterval(setDuration, auto)); appStoreWithOut.setReloadTimer(setInterval(setDuration, auto));
} }
dashboardStore.setLayer(route.params.layer);
dashboardStore.setEntity(route.params.entity);
await setSelector(); await setSelector();
await queryMetrics(); await queryMetrics();
} }

View File

@ -118,7 +118,6 @@ limitations under the License. -->
if (f.step === TimeType.DAY_TIME) { if (f.step === TimeType.DAY_TIME) {
opt.auto = Number(f.value) * 60 * 60 * 60 * 1000; opt.auto = Number(f.value) * 60 * 60 * 60 * 1000;
} }
console.log(opt.auto);
} }
const config = JSON.stringify(opt); const config = JSON.stringify(opt);
const path = `/page/${dashboardStore.layerId}/${ const path = `/page/${dashboardStore.layerId}/${

View File

@ -104,7 +104,6 @@ limitations under the License. -->
() => selectorStore.currentService, () => selectorStore.currentService,
() => { () => {
searchTasks(); searchTasks();
console.log("service");
}, },
); );
watch( watch(

View File

@ -220,7 +220,6 @@ limitations under the License. -->
visGraph.value.on("select", (data: { items: number[] }) => { visGraph.value.on("select", (data: { items: number[] }) => {
const index = data.items[0]; const index = data.items[0];
currentEvent.value = events[index - 1 || 0] || {}; currentEvent.value = events[index - 1 || 0] || {};
console.log(currentEvent.value);
if (data.items.length) { if (data.items.length) {
showEventDetail.value = true; showEventDetail.value = true;
return; return;