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.
18 lines
522 B
TypeScript
18 lines
522 B
TypeScript
|
8 months ago
|
const preUrl = '/pages/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 })
|
||
|
|
}
|