|
|
|
@ -356,6 +356,7 @@ export default { |
|
|
|
|
|
|
|
// 提交表单(新增/编辑) |
|
|
|
async submitForm() { |
|
|
|
const API_BASE_URL = import.meta.env.VITE_API_BASE_IMG_URL; |
|
|
|
this.$refs.formRef.validate( async (valid) => { |
|
|
|
if (valid) { |
|
|
|
let landingPageFlag = true |
|
|
|
@ -366,7 +367,7 @@ export default { |
|
|
|
formData.append("type", "image"); |
|
|
|
formData.append("app_from", "toujiao"); |
|
|
|
const landingPageRes = await axios.post( |
|
|
|
'http://39.101.133.168:8828/hljwgo/api/file/upload', |
|
|
|
API_BASE_URL+'/hljwgo/api/file/upload', |
|
|
|
formData, |
|
|
|
{ |
|
|
|
headers: { "Content-Type": "multipart/form-data" } |
|
|
|
@ -391,7 +392,7 @@ export default { |
|
|
|
popupFormData.append("type", "image"); |
|
|
|
popupFormData.append("app_from", "toujiao"); |
|
|
|
const popupRes =await axios.post( |
|
|
|
'http://39.101.133.168:8828/hljwgo/api/file/upload', |
|
|
|
API_BASE_URL + '/hljwgo/api/file/upload', |
|
|
|
popupFormData, |
|
|
|
{ |
|
|
|
headers: { "Content-Type": "multipart/form-data" } |
|
|
|
|