update

parent ec399119
...@@ -80,7 +80,7 @@ module.exports = configure(function (ctx) { ...@@ -80,7 +80,7 @@ module.exports = configure(function (ctx) {
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: { devServer: {
https: false, https: false,
port: 10706, port: 10710,
open: false, // opens browser window automatically open: false, // opens browser window automatically
}, },
......
export const config = { export const config = {
API_ENDPOINT: 'https://cms.vab.xteldev.com/api/', // API_ENDPOINT: 'https://cms.vab.xteldev.com/api/',
API_IMAGE_ENDPOINT: 'https://cms.vab.xteldev.com/file/upload/', API_ENDPOINT:'http://103.147.34.34:10700/api/',
API_IMAGE_ENDPOINT: 'http://103.147.34.34:10700/api/upload/',
// API_IMAGE_ENDPOINT: 'https://cms.vab.xteldev.com/file/upload/',
API_RES_CODE: { API_RES_CODE: {
OK: { OK: {
code: 0, code: 0,
......
...@@ -461,7 +461,8 @@ export default defineComponent({ ...@@ -461,7 +461,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -400,7 +400,8 @@ export default defineComponent({ ...@@ -400,7 +400,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -408,7 +408,8 @@ export default defineComponent({ ...@@ -408,7 +408,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -468,7 +468,8 @@ export default defineComponent({ ...@@ -468,7 +468,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -413,7 +413,8 @@ export default defineComponent({ ...@@ -413,7 +413,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -284,7 +284,8 @@ export default defineComponent({ ...@@ -284,7 +284,8 @@ export default defineComponent({
bodyFormData.append('file', file); bodyFormData.append('file', file);
const response = (await api({ const response = (await api({
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
url: 'https://cms.vab.xteldev.com/file/upload/', // url: 'https://cms.vab.xteldev.com/file/upload/',
url:'http://103.147.34.34:10700/api/upload/',
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) 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