Skip to content

Commit

Permalink
feat: 在线分享第一版-优化分享页面
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 19, 2023
1 parent 8f9f4a3 commit b810ec8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ export default {
"If this feature is enabled, you can set the link expiration time, unit/second, and support up to 7 days",
"share.help": "Learn about sharing",
"share.copy.link": "Copy link",
"share.set.home": "Set home",
}
1 change: 1 addition & 0 deletions locales/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ export default {
"share.link.expires.time.placeholder": "单位/秒,最多支持7天",
"share.help": "了解共享",
"share.copy.link": "复制链接",
"share.set.home": "设为主页",
}
12 changes: 12 additions & 0 deletions pages/share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ const goHelp = async () => {
</div>
</div>

<div class="share-item">
<div class="item-left">
<el-icon>
<el-icon-home-filled />
</el-icon>
{{ t("share.set.home") }}
</div>
<div class="item-right">
<el-switch />
</div>
</div>

<!--
<div class="share-item text-center other-setting">
<div class="item-middle" @click="goSetting">{{ t("share.other.option") }}</div>
Expand Down

0 comments on commit b810ec8

Please sign in to comment.