去掉全局分享

This commit is contained in:
wangxiaowei
2026-01-07 23:37:55 +08:00
parent f846d59340
commit 40c2b0dd6c
2 changed files with 0 additions and 24 deletions

View File

@ -1,20 +0,0 @@
export default function useShare() {
const miniShareOptions = reactive({
// 分享标题
title: '',
//页面 path不建议直接配置分享哪个页面就配置哪个页面的路径有些页面不建议分享如订单页所以默认都是分享首页
path: '/pages/index/index',
// 分享图标路径可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4
imageUrl: '',
})
return {
// 发送给朋友
onShareAppMessage() {
return {
...miniShareOptions,
}
}
}
}

View File

@ -4,7 +4,6 @@ import App from './App.vue'
import { requestInterceptor } from './http/interceptor'
import { routeInterceptor } from './router/interceptor'
import NavBar from '@/components/Navbar.vue'
import useShare from '@/hooks/useShare'
import store from './store'
import '@/style/index.scss'
@ -26,9 +25,6 @@ export function createApp() {
app.provide('navbarHeight', getNavBarHeight())
app.provide('capsuleOffset', getCapsuleOffset())
app.mixin(useShare())
return {
app,
}