<script>
/** 兼容旧路由，统一跳转到账号安全流浅色页 */
export default {
	onLoad(query) {
		const params = Object.keys(query || {})
			.map((key) => `${key}=${encodeURIComponent(query[key])}`)
			.join('&')
		const url = params
			? `/pages/account/reset-secret?${params}`
			: '/pages/account/reset-secret'
		uni.redirectTo({ url })
	}
}
</script>
