init
This commit is contained in:
@@ -41,69 +41,55 @@ import WchProfessions from '../views/users/wch_professions.vue'
|
||||
|
||||
/**
|
||||
* 组件映射对象
|
||||
* key: 后端返回的组件路径(去掉 .vue 后缀或保留都可以)
|
||||
*
|
||||
* ✅ 重要提示:只需传递不带 .vue 后缀的路径!
|
||||
* 框架会自动为每个组件创建带 .vue 和不带 .vue 的两个映射
|
||||
*
|
||||
* 例如:'ai/ai_messages': AiMessages
|
||||
* 框架自动处理为:
|
||||
* - 'ai/ai_messages' → AiMessages
|
||||
* - 'ai/ai_messages.vue' → AiMessages (自动添加)
|
||||
*
|
||||
* key: 后端返回的组件路径(不带 .vue 后缀)
|
||||
* value: 实际的 Vue 组件
|
||||
*/
|
||||
const componentMap = {
|
||||
// ===== AI 模块 =====
|
||||
'ai/ai_messages': AiMessages,
|
||||
'ai/ai_messages.vue': AiMessages,
|
||||
|
||||
// ===== 球场模块 =====
|
||||
'ball/game_comments': GameComments,
|
||||
'ball/game_comments.vue': GameComments,
|
||||
'ball/game_participants': GameParticipants,
|
||||
'ball/game_participants.vue': GameParticipants,
|
||||
'ball/games': Games,
|
||||
'ball/games.vue': Games,
|
||||
'ball/venues': Venues,
|
||||
'ball/venues.vue': Venues,
|
||||
'ball/wch_users': WchUsers,
|
||||
'ball/wch_users.vue': WchUsers,
|
||||
|
||||
// ===== 业务模块 =====
|
||||
'business/hot_city_qr': HotCityQr,
|
||||
'business/hot_city_qr.vue': HotCityQr,
|
||||
|
||||
// ===== 消息模块 =====
|
||||
'message/msg_notifications': MsgNotifications,
|
||||
'message/msg_notifications.vue': MsgNotifications,
|
||||
|
||||
// ===== NTRP 模块 =====
|
||||
'ntrp/ntr_questions': NtrQuestions,
|
||||
'ntrp/ntr_questions.vue': NtrQuestions,
|
||||
'ntrp/ntr_records': NtrRecords,
|
||||
'ntrp/ntr_records.vue': NtrRecords,
|
||||
|
||||
// ===== 订单模块 =====
|
||||
'order/frozen_funds': FrozenFunds,
|
||||
'order/frozen_funds.vue': FrozenFunds,
|
||||
'order/pay_orders': PayOrders,
|
||||
'order/pay_orders.vue': PayOrders,
|
||||
'order/transfer_details': TransferDetails,
|
||||
'order/transfer_details.vue': TransferDetails,
|
||||
'order/wallet_transactions': WalletTransactions,
|
||||
'order/wallet_transactions.vue': WalletTransactions,
|
||||
'order/wch_wallets': WchWallets,
|
||||
'order/wch_wallets.vue': WchWallets,
|
||||
|
||||
// ===== 统计模块 =====
|
||||
'statistics/resources': Resources,
|
||||
'statistics/resources.vue': Resources,
|
||||
|
||||
// ===== 用户模块 =====
|
||||
'users/recommend_blocks': RecommendBlocks,
|
||||
'users/recommend_blocks.vue': RecommendBlocks,
|
||||
'users/user_follows': UserFollows,
|
||||
'users/user_follows.vue': UserFollows,
|
||||
'users/user_tracking': UserTracking,
|
||||
'users/user_tracking.vue': UserTracking,
|
||||
"users/wch_cities.vue": WchCities,
|
||||
"users/wch_cities": WchCities,
|
||||
"users/wch_professions.vue": WchProfessions,
|
||||
"users/wch_professions": WchProfessions,
|
||||
|
||||
|
||||
'users/wch_cities': WchCities,
|
||||
'users/wch_professions': WchProfessions,
|
||||
}
|
||||
|
||||
export default componentMap
|
||||
|
||||
Reference in New Issue
Block a user