You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apply-assistant-v3/pages/NEUIKit/utils/customNavigate.ts

18 lines
521 B
TypeScript

5 months ago
const preUrl = '/root/NEUIKit'
export function customNavigateTo(options: { url: string }) {
uni.navigateTo({ ...options, url: preUrl + options.url })
}
export function customRedirectTo(options: { url: string }) {
uni.redirectTo({ ...options, url: preUrl + options.url })
}
export function customSwitchTab(options: { url: string }) {
uni.switchTab({ ...options, url: preUrl + options.url })
}
export function customReLaunch(options: { url: string }) {
uni.reLaunch({ ...options, url: preUrl + options.url })
}