完成consumer端同步
This commit is contained in:
22
pages/mall/consumer/edit-profile.uvue
Normal file
22
pages/mall/consumer/edit-profile.uvue
Normal file
@@ -0,0 +1,22 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user