update

parent 0f1469c4
export const config = {
API_ENDPOINT: 'https://cms.vab.xteldev.com/api/', //test
// API_ENDPOINT:'http://103.147.34.34:10700/api/' ,
// API_IMAGE_ENDPOINT: 'http://103.147.34.34:10700/api/upload/' , // test
API_IMAGE_ENDPOINT: 'https://cms.vab.xteldev.com/file/upload/',
// API_ENDPOINT: 'https://cms.vab.xteldev.com/api/', //test
API_ENDPOINT:'http://103.147.34.34:10700/api/' ,
API_IMAGE_ENDPOINT: 'http://103.147.34.34:10700/api/upload/' , // test
// API_IMAGE_ENDPOINT: 'https://cms.vab.xteldev.com/file/upload/',
API_RES_CODE: {
OK: {
......
......@@ -461,8 +461,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // test
// url:'http://103.147.34.34:10700/api/upload/', // pro
// url: 'https://cms.vab.xteldev.com/file/upload/', // test
url:'http://103.147.34.34:10700/api/upload/', // pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
......@@ -400,8 +400,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', //test
// url:'http://103.147.34.34:10700/api/upload/', // pro
// url: 'https://cms.vab.xteldev.com/file/upload/', //test
url:'http://103.147.34.34:10700/api/upload/', // pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
......@@ -408,8 +408,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // test
// url:'http://103.147.34.34:10700/api/upload/', // pro
// url: 'https://cms.vab.xteldev.com/file/upload/', // test
url:'http://103.147.34.34:10700/api/upload/', // pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
......@@ -468,8 +468,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // test
// url:'http://103.147.34.34:10700/api/upload/', //pro
// url: 'https://cms.vab.xteldev.com/file/upload/', // test
url:'http://103.147.34.34:10700/api/upload/', //pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
......@@ -413,8 +413,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // test
// url:'http://103.147.34.34:10700/api/upload/', // pro
// url: 'https://cms.vab.xteldev.com/file/upload/', // test
url:'http://103.147.34.34:10700/api/upload/', // pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
......@@ -284,8 +284,8 @@ export default defineComponent({
bodyFormData.append('file', file);
const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // test
// url:'http://103.147.34.34:10700/api/upload/', // pro
// url: 'https://cms.vab.xteldev.com/file/upload/', // test
url:'http://103.147.34.34:10700/api/upload/', // pro
method: 'POST',
data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment