mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-07 21:55:47 +08:00
fix 修复 EasyPayConfigForm 引用已删除 DaxpayPerm.api 的问题
This commit is contained in:
@@ -113,8 +113,7 @@
|
||||
import { useDict } from '@/hooks/bootx/useDict'
|
||||
import { CashierSceneEnum } from '@/enums/daxpay/daxpayEnum'
|
||||
import { LabeledValue } from 'ant-design-vue/lib/select'
|
||||
import { isAdmin, isAgent, isMerchant } from '@/utils/env'
|
||||
import { getAgentPermConfig, getMchPermConfig } from '@/api/daxpay/DaxpayPerm.api'
|
||||
import { isAdmin, isMerchant } from '@/utils/env'
|
||||
|
||||
const { labelCol, wrapperCol, confirmLoading } = useFormEdit()
|
||||
const { createMessage } = useMessage()
|
||||
@@ -150,18 +149,6 @@
|
||||
permFlag.value = true
|
||||
return Promise.resolve()
|
||||
}
|
||||
if (isAgent()) {
|
||||
// 返回Promise以确保await生效
|
||||
return getAgentPermConfig().then(({ data }) => {
|
||||
permFlag.value = data.setupAlloc as boolean
|
||||
})
|
||||
}
|
||||
if (isMerchant()) {
|
||||
// 返回Promise以确保await生效
|
||||
return getMchPermConfig().then(({ data }) => {
|
||||
permFlag.value = data.setupAlloc as boolean
|
||||
})
|
||||
}
|
||||
permFlag.value = true
|
||||
return Promise.resolve()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user