|
123 | 123 | /> |
124 | 124 | </template> |
125 | 125 | </nut-cell> |
| 126 | + <nut-cell :title="$t(`moreSettingPage.displayPreviewInWebPage`)" class="cell-item"> |
| 127 | + <template v-slot:link> |
| 128 | + <nut-switch |
| 129 | + class="my-switch" |
| 130 | + v-model="awDisplayPreviewInWebPage" |
| 131 | + size="mini" |
| 132 | + @change="setDisplayPreviewInWebPage" |
| 133 | + /> |
| 134 | + </template> |
| 135 | + </nut-cell> |
126 | 136 |
|
127 | 137 | <nut-cell :title="$t(`moreSettingPage.tabBar2`)" class="cell-item"> |
128 | 138 | <template v-slot:link> |
|
282 | 292 | const awSimpleShowRemark = ref(false); |
283 | 293 | const awShowFloatingRefreshButton = ref(false); |
284 | 294 | const awShowFloatingAddButton = ref(true); |
| 295 | + const awDisplayPreviewInWebPage = ref(true); |
285 | 296 | const awtabBar = ref(true); |
286 | 297 | const awtabBar2 = ref(true); |
287 | 298 | // const isEditing = ref(false); |
|
402 | 413 | changeAppearanceSetting({ appearanceSetting: data }); |
403 | 414 | }; |
404 | 415 |
|
| 416 | + const setDisplayPreviewInWebPage = (displayPreviewInWebPage: boolean) => { |
| 417 | + const data = { |
| 418 | + ...appearanceSetting.value, |
| 419 | + displayPreviewInWebPage: displayPreviewInWebPage |
| 420 | + } |
| 421 | + changeAppearanceSetting({ appearanceSetting: data }); |
| 422 | + }; |
405 | 423 | const settabBar = (istabBar: boolean) => { |
406 | 424 | // globalStore.settabBar(istabBar); |
407 | 425 | const data = { |
|
604 | 622 | awSimpleShowRemark.value = appearanceSetting.value.isSimpleShowRemark; |
605 | 623 | awShowFloatingRefreshButton.value = appearanceSetting.value.showFloatingRefreshButton; |
606 | 624 | awShowFloatingAddButton.value = appearanceSetting.value.showFloatingAddButton; |
| 625 | + awDisplayPreviewInWebPage.value = appearanceSetting.value.displayPreviewInWebPage; |
607 | 626 | awtabBar.value = appearanceSetting.value.istabBar; |
608 | 627 | awtabBar2.value = appearanceSetting.value.istabBar2; |
609 | 628 | subProgressStyleValue.value = [appearanceSetting.value.subProgressStyle]; |
|
0 commit comments