diff --git a/src/layout/components/setting/index.vue b/src/layout/components/setting/index.vue index 269ca350a..7ffb34f0e 100644 --- a/src/layout/components/setting/index.vue +++ b/src/layout/components/setting/index.vue @@ -147,18 +147,20 @@ function setFalse(Doms): any { } /** 页宽 */ -const stretchTypeOptions: Array = [ - { - label: t("panel.pureStretchFixed"), - tip: t("panel.pureStretchFixedTip"), - value: "fixed" - }, - { - label: t("panel.pureStretchCustom"), - tip: t("panel.pureStretchCustomTip"), - value: "custom" - } -]; +const stretchTypeOptions = computed>(() => { + return [ + { + label: t("panel.pureStretchFixed"), + tip: t("panel.pureStretchFixedTip"), + value: "fixed" + }, + { + label: t("panel.pureStretchCustom"), + tip: t("panel.pureStretchCustomTip"), + value: "custom" + } + ]; +}); const setStretch = value => { settings.stretch = value; @@ -219,18 +221,20 @@ const themeOptions = computed>(() => { ]; }); -const markOptions: Array = [ - { - label: t("panel.pureTagsStyleSmart"), - tip: t("panel.pureTagsStyleSmartTip"), - value: "smart" - }, - { - label: t("panel.pureTagsStyleCard"), - tip: t("panel.pureTagsStyleCardTip"), - value: "card" - } -]; +const markOptions = computed>(() => { + return [ + { + label: t("panel.pureTagsStyleSmart"), + tip: t("panel.pureTagsStyleSmartTip"), + value: "smart" + }, + { + label: t("panel.pureTagsStyleCard"), + tip: t("panel.pureTagsStyleCardTip"), + value: "card" + } + ]; +}); /** 设置导航模式 */ function setLayoutModel(layout: string) {