consumer模块完成度95%,能编译在安卓端运行,在解决数据获取和页面布局问题
This commit is contained in:
@@ -597,6 +597,12 @@ const processCheckoutItems = (items: any[]) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取当前用户ID
|
||||
function getCurrentUserId(): string {
|
||||
const userId = supabaseService.getCurrentUserId()
|
||||
return userId ?? ''
|
||||
}
|
||||
|
||||
// 生命周期
|
||||
onMounted(() => {
|
||||
// 监听地址更新事件
|
||||
@@ -774,14 +780,8 @@ async function loadDefaultAddress(): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取当前用户ID
|
||||
function getCurrentUserId(): string {
|
||||
const userId = supabaseService.getCurrentUserId()
|
||||
return userId ?? ''
|
||||
}
|
||||
|
||||
// 用户登录状态
|
||||
const isLoggedIn = computed(() => {
|
||||
const isLoggedIn = computed((): boolean => {
|
||||
const userId = getCurrentUserId()
|
||||
return userId != ''
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user