23 lines
438 B
Plaintext
23 lines
438 B
Plaintext
<template>
|
|
<view />
|
|
</template>
|
|
|
|
<script lang="uts">
|
|
export default {
|
|
onLoad(options) {
|
|
let url = '/pages/user/profile'
|
|
if (options != null) {
|
|
const optObj = options as UTSJSONObject
|
|
const userId = optObj.getString('userId') ?? ''
|
|
if (userId !== '') {
|
|
url = `/pages/user/profile?userId=${encodeURIComponent(userId)}`
|
|
}
|
|
}
|
|
uni.redirectTo({ url })
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
</style>
|