pull/1/head
Saeid 4 years ago
parent 59a910d326
commit bfa1af0715

@ -48,7 +48,7 @@ export const initTiny = (batch_id) => ({
// 'fontselect' // 'fontselect'
// font_formats : "IranYekan=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n", // font_formats : "IranYekan=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n",
fontsize_formats: '10pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 36pt 60pt 72pt', fontsize_formats: '10pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 36pt 60pt 72pt',
images_upload_url: "/api/files", images_upload_url: "/api/v1/files",
relative_urls : false, relative_urls : false,
remove_script_host : false, remove_script_host : false,
document_base_url: window.location.origin, document_base_url: window.location.origin,
@ -60,7 +60,7 @@ export const initTiny = (batch_id) => ({
let formData = new FormData(); let formData = new FormData();
formData.append("file", blobInfo.blob(), blobInfo.filename()); formData.append("file", blobInfo.blob(), blobInfo.filename());
formData.append("batch_id", batch_id); formData.append("batch_id", batch_id);
let response = await axios.post('/api/file', formData); let response = await axios.post('/api/v1/file', formData);
if (response && response.status == 200) { if (response && response.status == 200) {
return success(response.data.data.url); return success(response.data.data.url);

@ -12,7 +12,7 @@ export default {
}, },
async loadCategoryName({ commit }) { async loadCategoryName({ commit }) {
try { try {
const response = await axios.get("/api/config"); const response = await axios.get("/api/v1/config");
if (response && response.status == 200) { if (response && response.status == 200) {
CategoryNameService.save(response.data); CategoryNameService.save(response.data);
commit("SET_CATEGORY_NAME", response.data); commit("SET_CATEGORY_NAME", response.data);
@ -22,4 +22,4 @@ export default {
return false; return false;
} }
}, },
} }

Loading…
Cancel
Save