Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-07-12 14:29:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f9d2ef8718abead01b643e5518b6dadc1264fe02
f9d2ef87
1 parent
f5fbfdee
✨ feat: 分享页面显示优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
src/views/client/index.vue
src/views/client/personIndex.vue
src/views/client/index.vue
View file @
f9d2ef8
...
...
@@ -27,11 +27,14 @@ import { useGo } from '@/hooks/useGo'
// 自定义按钮颜色样式
import { styleObject1, styleObject2 } from '@/settings/designSetting.js'
import { addPages } from '@/hooks/useKeepAlive'
import { sharePage } from '@/composables/useShare.js'
const go = useGo();
// TAG: keepAlive 缓存页面
addPages();
// TAG:微信分享
sharePage({});
onMounted(() => {
// 进入项目自动打开导航栏 微信浏览器 避免样式错位
...
...
src/views/client/personIndex.vue
View file @
f9d2ef8
...
...
@@ -80,8 +80,10 @@ import { useScrollTop } from '@/composables';
import { prepareDonateAPI } from '@/api/C/donate.js'
import { sharePage } from '@/composables/useShare.js'
// TAG:微信分享
sharePage({});
setTimeout(() => {
// TAG:微信分享
sharePage({ title: `${userInfo.value.name}-${userInfo.value.kg_name}` });
}, 500);
const { resetScrollTop } = useScrollTop(); // 页面滚动恢复
resetScrollTop('scrollTopPerson');
...
...
Please
register
or
login
to post a comment