|
|
@@ -199,7 +199,7 @@ const getChargeConfig = async () => {
|
|
|
const [err, res]: ToResponse = await to(instApi.getSettingDetail({ ...params }))
|
|
|
if (err) return
|
|
|
state.InstCfgCharge = res?.data.config.enable && !res?.data.config.sampleFreeEnable
|
|
|
- if (res?.data?.config?.sampleCountEnable) {
|
|
|
+ if (res?.data?.config?.sampleCountEnable && res?.data?.config?.enable) {
|
|
|
state.form.sampleItem = res?.data?.config?.sampleItemPrice || []
|
|
|
state.form.sampleItem = state.form.sampleItem.map((item) => {
|
|
|
return {
|