f
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
<div v-else-if="transactions.length === 0" class="text-center py-12">
|
||||
<el-empty description="暂无消费记录">
|
||||
<el-button type="primary" @click="$router.push('/finance/wallet')">
|
||||
<el-button v-if="!isSubordinate" type="primary" @click="$router.push('/finance/wallet')">
|
||||
前往钱包充值
|
||||
</el-button>
|
||||
</el-empty>
|
||||
@@ -203,9 +203,12 @@ import FilterSection from '@/components/common/FilterSection.vue'
|
||||
import ListPageLayout from '@/components/common/ListPageLayout.vue'
|
||||
import { useMobileTable } from '@/composables/useMobileTable'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
|
||||
// 移动端检测
|
||||
const { isMobile } = useMobileTable()
|
||||
const userStore = useUserStore()
|
||||
const isSubordinate = computed(() => userStore.accountKind === 'subordinate')
|
||||
|
||||
// 响应式数据
|
||||
const loading = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user