店铺管理初版

This commit is contained in:
xiaowang
2026-02-26 14:20:35 +08:00
parent 98c9463efa
commit 4275f1840c
9 changed files with 230 additions and 37 deletions
+10 -1
View File
@@ -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()