|
@@ -409,6 +409,7 @@ const oneFormValidate = ref([
|
|
|
integral: 0
|
|
integral: 0
|
|
|
}
|
|
}
|
|
|
])
|
|
])
|
|
|
|
|
+const { VITE_BASE_URL } = import.meta.env
|
|
|
|
|
|
|
|
const formRules = reactive({
|
|
const formRules = reactive({
|
|
|
shopId: [{ required: true, message: t('common.selectShop'), trigger: 'blur' }],
|
|
shopId: [{ required: true, message: t('common.selectShop'), trigger: 'blur' }],
|
|
@@ -748,6 +749,11 @@ const getInfo = (id) => {
|
|
|
console.log('shopId:', formValidate.value.shopId)
|
|
console.log('shopId:', formValidate.value.shopId)
|
|
|
await getTree(formValidate.value.shopId)
|
|
await getTree(formValidate.value.shopId)
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log('🚀 ~ .then ~ data.attr:', data.attr)
|
|
|
|
|
+
|
|
|
|
|
+ if (data.attr.pic && !data.attr.pic.include('https://api.ifoodme.com')) {
|
|
|
|
|
+ data.attr.pic = VITE_BASE_URL + data.attr.pic
|
|
|
|
|
+ }
|
|
|
oneFormValidate.value = [data.attr]
|
|
oneFormValidate.value = [data.attr]
|
|
|
formValidate.value.header = []
|
|
formValidate.value.header = []
|
|
|
generate()
|
|
generate()
|