feat: implement open link in current tab temporarily

This commit is contained in:
Hakadao
2023-09-30 22:35:23 +08:00
parent 09986179de
commit 92ff78c966
3 changed files with 8 additions and 0 deletions

View File

@@ -90,6 +90,10 @@ watch(() => settings.value.language, (newValue, oldValue) => {
<SettingItem :title="$t('settings.enable_horizontal_scrolling')" :desc="$t('settings.enable_horizontal_scrolling_desc')">
<Radio v-model="settings.enableHorizontalScrolling" />
</SettingItem>
<!-- <SettingItem title="Open link in current tab">
<Radio v-model="settings.openLinkInCurrentTab" />
</SettingItem> -->
</template>
<style lang="scss" scoped>

View File

@@ -11,6 +11,8 @@ export const settings = useStorageLocal('settings', ref<Settings>({
isShowTopbar: true,
dockPosition: 'right',
enableHorizontalScrolling: false,
openLinkInCurrentTab: false,
theme: 'auto',
themeColor: '#00a1d6',
adaptToOtherPageStyles: true,

View File

@@ -6,6 +6,8 @@ export interface Settings {
isShowTopbar: boolean
dockPosition: 'left' | 'right' | 'bottom'
enableHorizontalScrolling: boolean
openLinkInCurrentTab: boolean
theme: 'light' | 'dark' | 'auto'
themeColor: string
adaptToOtherPageStyles: boolean