初始化端午项目

This commit is contained in:
梁泽军
2025-05-20 18:28:02 +08:00
parent d239b3f8fb
commit 749a61f00b
95 changed files with 1399 additions and 1387 deletions

View File

@@ -3,7 +3,7 @@ import axios from "axios";
import { Toast } from "vant";
import {getShareConfig } from '@/api'
const imgUrl = new URL(`@/assets/images/share.jpg`, import.meta.url).href
const imgUrl = new URL(`../assets/images/share.jpg`, import.meta.url).href
const linkUrl = import.meta.env.VITE_HOST + import.meta.env.VITE_FOLDER
export function wxShare(option) {
@@ -31,6 +31,7 @@ export function wxShare(option) {
] // 必填需要使用的JS接口列表所有JS接口列表见附录2
})
wx.ready(function () {
console.log('share config success');
wx.onMenuShareTimeline({
link: import.meta.env.VITE_URL, // 分享链接
title: option.title, // 分享标题
@@ -56,4 +57,5 @@ export function wxShare(option) {
})
.catch(() => {
});
}
}