update

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