去除所有的控制台日志日志
This commit is contained in:
@@ -294,15 +294,11 @@ const menuItems = ref([
|
||||
|
||||
const fetchUserInfo = async () => {
|
||||
try {
|
||||
console.log('开始获取用户信息...')
|
||||
const response = await userApi.getUserInfo() as any
|
||||
console.log('获取到的用户信息:', response)
|
||||
userInfo.value = response
|
||||
console.log('设置后的 userInfo:', userInfo.value)
|
||||
// 检查是否需要设置密码
|
||||
needSetPassword.value = localStorage.getItem('needSetPassword') === 'true'
|
||||
} catch (error) {
|
||||
console.error('获取用户信息失败:', error)
|
||||
message.error('获取用户信息失败')
|
||||
}
|
||||
}
|
||||
@@ -425,7 +421,6 @@ const handleCancelOrder = async (orderId: number) => {
|
||||
}
|
||||
|
||||
const handleMenuClick = (key: string) => {
|
||||
console.log('菜单项被点击:', key)
|
||||
if (key === 'wishlist') {
|
||||
router.push('/wishlist')
|
||||
} else if (key === 'orders') {
|
||||
@@ -468,17 +463,14 @@ const handleLogout = () => {
|
||||
}
|
||||
|
||||
const handleSettingsClick = () => {
|
||||
console.log('设置图标被点击')
|
||||
router.push('/settings')
|
||||
}
|
||||
|
||||
const handleSetPassword = () => {
|
||||
console.log('去设置密码')
|
||||
router.push('/settings/password')
|
||||
}
|
||||
|
||||
const handleShopClick = () => {
|
||||
console.log('店铺信息被点击')
|
||||
if (userInfo.value.shopId) {
|
||||
router.push(`/shop/${userInfo.value.shopId}`)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user