From 6d86ad3ea52ca59d49d3da127ef7bfa9215c7feb Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期三, 18 十二月 2024 12:01:30 +0800 Subject: [PATCH] 1 --- packageBookService/pages/bookServices/linkPage/index.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/linkPage/index.js b/packageBookService/pages/bookServices/linkPage/index.js index 472c583..279af9f 100644 --- a/packageBookService/pages/bookServices/linkPage/index.js +++ b/packageBookService/pages/bookServices/linkPage/index.js @@ -23,6 +23,10 @@ if (key != 'path') path = path + key + '=' + options[key] + '&' } + if (path.lastIndexOf('&') == path.length - 1) { + console.log(1); + path = path.slice(0, path.length - 1) + } this.setData({ path }) @@ -74,9 +78,8 @@ /** * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� */ - onShareAppMessage() { - - }, + onShareAppMessage() {}, + onShareTimeline() {}, copyPath() { wx.setClipboardData({ data: this.data.path, -- Gitblit v1.9.1