fix: update default depth

This commit is contained in:
Qiuxia Fan 2022-02-19 22:47:45 +08:00
parent 46099781c9
commit c5eb8215dc
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,8 @@ limitations under the License. -->
<div class="item"> <div class="item">
<span class="label">{{ t("defaultDepth") }}</span> <span class="label">{{ t("defaultDepth") }}</span>
<Selector <Selector
class="inputs" class="input"
size="small"
:value="depth" :value="depth"
:options="DepthList" :options="DepthList"
@change="changeDepth($event)" @change="changeDepth($event)"

View File

@ -87,9 +87,9 @@ const loading = ref<boolean>(false);
const height = ref<number>(document.body.clientHeight - 150); const height = ref<number>(document.body.clientHeight - 150);
const width = ref<number>(document.body.clientWidth - 40); const width = ref<number>(document.body.clientWidth - 40);
const showSettings = ref<boolean>(false); const showSettings = ref<boolean>(false);
const depth = ref<string>("2");
const settings = ref<any>({}); const settings = ref<any>({});
const operationsPos = reactive<{ x: number; y: number }>({ x: NaN, y: NaN }); const operationsPos = reactive<{ x: number; y: number }>({ x: NaN, y: NaN });
const depth = ref<string>(topologyStore.defaultDepth);
const items = [ const items = [
{ id: "inspect", title: "Inspect", func: inspect }, { id: "inspect", title: "Inspect", func: inspect },
{ id: "dashboard", title: "View Dashboard", func: goDashboard }, { id: "dashboard", title: "View Dashboard", func: goDashboard },