This commit is contained in:
2020-05-13 22:42:55 +00:00
parent 6e41dad1b0
commit 8c5d2f1e1d
6 changed files with 15 additions and 15 deletions

View File

@@ -821,7 +821,7 @@ export default {
let vm = this;
vm.attachments = [];
window.$gz.api
.get("Attachment/list?ayatype=" + vm.ayaType + "&ayaid=" + vm.ayaId)
.get("attachment/list?ayatype=" + vm.ayaType + "&ayaid=" + vm.ayaId)
.then(res => {
if (res.error) {
window.$gz.errorHandler.handleFormError(res.error);
@@ -929,12 +929,12 @@ export default {
insertUrl(url, name) {
if (url) {
let isImageUrl = false;
//Attachment?
if (url.includes("Attachment/download/")) {
//attachment?
if (url.includes("attachment/download/")) {
//it's an attachment url so fixup accordingly
//i paramter added by gzapi::downloadUrl function
isImageUrl = url.includes("&i=");
let m = url.match(/Attachment\/download\/(.*)\?t=/);
let m = url.match(/attachment\/download\/(.*)\?t=/);
if (m.length > 1) {
url = "[ATTACH:" + m[1] + "]";
} else {