shareApp
shareApp là jsapi để mở share panel để chia sẻ content từ miniapp
Tham số
| Thuộc tính | Kiểu dữ liệu | Bắt buộc | Mô tả |
|---|---|---|---|
| title | string | Tiêu đề của share popup | |
| desc | string | Description của share popup | |
| path | string | Path path, route của page cần mở | |
| url | string | Url muốn share thay vì share universal link của app | |
| success | Function | Callback function khi save hình ảnh thành công | |
| fail | Function | Callback function khi save image bất thành | |
| complete | Function | Callback function khi gọi API hoàn tất bất kể việc save hình ảnh thành công hay thất bại. |
Ví dụ
import apis from '@v-miniapp/apis'
apis.shareApp({
title: "Custom title",
desc: "Custom description",
path: "shareApp", // page router name
url: "https://your_url_here",
});