fix: 禁止分享登录页面
This commit is contained in:
@@ -3,7 +3,9 @@ export default {
|
|||||||
app.mixin({
|
app.mixin({
|
||||||
onLoad() {
|
onLoad() {
|
||||||
const page = getCurrentPages().pop();
|
const page = getCurrentPages().pop();
|
||||||
if (page) {
|
console.log("Current page:", page);
|
||||||
|
const allowShare = page && page.route && page.route !== "pages/login/index";
|
||||||
|
if (allowShare) {
|
||||||
uni.showShareMenu({
|
uni.showShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ["shareAppMessage", "shareTimeline"],
|
menus: ["shareAppMessage", "shareTimeline"],
|
||||||
|
|||||||
Reference in New Issue
Block a user