店铺管理初版
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="shop-section" v-if="userInfo.shopName">
|
||||
<div class="shop-card">
|
||||
<div class="shop-card" @click="handleShopClick">
|
||||
<div class="shop-icon-wrapper">
|
||||
<ShopOutlined class="shop-icon" />
|
||||
</div>
|
||||
@@ -401,6 +401,15 @@ const handleSettingsClick = () => {
|
||||
router.push('/settings')
|
||||
}
|
||||
|
||||
const handleShopClick = () => {
|
||||
console.log('店铺信息被点击')
|
||||
if (userInfo.value.shopId) {
|
||||
router.push(`/shop/${userInfo.value.shopId}`)
|
||||
} else {
|
||||
message.error('店铺信息不完整')
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fetchUserInfo()
|
||||
fetchUserPermissions()
|
||||
|
||||
Reference in New Issue
Block a user