update

parent 41f305d5
...@@ -5,6 +5,7 @@ export const config = { ...@@ -5,6 +5,7 @@ export const config = {
// pro // pro
API_ENDPOINT: 'https://cms.vab.vn/api/', API_ENDPOINT: 'https://cms.vab.vn/api/',
API_IMAGE_ENDPOINT: 'https://cms.vab.vn/file/upload/', API_IMAGE_ENDPOINT: 'https://cms.vab.vn/file/upload/',
API_IMAGE_ORIGIN: 'https://cms.vab.vn/file/upload/origin',
// dev // dev
// API_ENDPOINT: 'http://103.147.34.20:10700/api/', // API_ENDPOINT: 'http://103.147.34.20:10700/api/',
// API_IMAGE_ENDPOINT: 'http://103.147.34.20:10705/file/upload/', // API_IMAGE_ENDPOINT: 'http://103.147.34.20:10705/file/upload/',
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
isUpdate isUpdate
? $t('listConfigSystem.dialogLabel.titleAdd') ? $t('listConfigSystem.dialogLabel.titleAdd')
: $t('listConfigSystem.dialogLabel.titleUpdate') : $t('listConfigSystem.dialogLabel.titleUpdate')
}}</q-item-label> }} </q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-card-section> </q-card-section>
...@@ -436,7 +436,7 @@ export default defineComponent({ ...@@ -436,7 +436,7 @@ 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: config.API_IMAGE_ENDPOINT, // pro url: config.API_IMAGE_ORIGIN, // pro
method: 'POST', method: 'POST',
data: bodyFormData, data: bodyFormData,
})) as AxiosResponse<BaseResponseBody<FileUploadType>>; })) as AxiosResponse<BaseResponseBody<FileUploadType>>;
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-content="item"> <!-- <template v-slot:body-cell-content="item">
<td> <td>
<div class="ellipsis-3-lines"> <div class="ellipsis-3-lines">
<div v-html="!item.row.content ? '' : item.row.content"></div> <div v-html="!item.row.content ? '' : item.row.content"></div>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
></q-tooltip> ></q-tooltip>
</div> </div>
</td> </td>
</template> </template> -->
</q-table> </q-table>
</div> </div>
<div class="col-12 q-mt-sm"> <div class="col-12 q-mt-sm">
...@@ -215,15 +215,15 @@ export default defineComponent({ ...@@ -215,15 +215,15 @@ export default defineComponent({
headerStyle: 'text-align: center !important; width: 10%', headerStyle: 'text-align: center !important; width: 10%',
sortable: false, sortable: false,
}, },
{ // {
name: 'content', // name: 'content',
field: 'content', // field: 'content',
required: true, // required: true,
label: i18n.global.t('listConfigSystem.titleColumnsTable.content'), // label: i18n.global.t('listConfigSystem.titleColumnsTable.content'),
headerStyle: 'text-align: center !important; width: 32%', // headerStyle: 'text-align: center !important; width: 32%',
align: 'left', // align: 'left',
sortable: false, // sortable: false,
}, // },
{ {
name: 'action', name: 'action',
field: 'action', field: 'action',
......
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