This commit is contained in:
2025-04-14 17:26:40 +08:00
parent a706b60c90
commit b6f2a0fdc1
19 changed files with 424 additions and 28 deletions

View File

@@ -14,14 +14,20 @@ export const isWXWeb = () => {
return userAgent.includes('MicroMessenger');
}
export const toPage = (url) => {
uni.reLaunch({
url: url,
}).then();
export const toPage = async (url) => {
try {
await uni.navigateTo({
url: url,
})
} catch (e) {
await uni.reLaunch({
url: url,
})
}
}
export const backPage = () => {
window.history.back();
uni.navigateBack().then();
}
export const copy = (context) => {