|
@@ -0,0 +1,29 @@
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ share: {
|
|
|
+ title: 'LibraAI智能体运营平台',
|
|
|
+ path: '/pages/home/index',
|
|
|
+ imageUrl: null
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ // const pages = getCurrentPages();
|
|
|
+ // const currentPage = pages[pages.length - 1];
|
|
|
+ // this.share.path = `/${currentPage.route}`; // 动态设置当前页面路径
|
|
|
+ // return this.share;
|
|
|
+ return {
|
|
|
+ title: this.share.title,
|
|
|
+ path: this.share.path,
|
|
|
+ imageUrl: this.share.imageUrl,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShareTimeline() {
|
|
|
+ return {
|
|
|
+ title: this.share.title,
|
|
|
+ path: this.share.path,
|
|
|
+ imageUrl: this.share.imageUrl,
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|