Добавлена возможность отправки комментариев по нажатию enter
This commit is contained in:
1 parent
370f45eb1e
commit
aaa911193a
8 files changed
+6
-6
No files matched your search
@@ -311,7 +311,7 @@
|
||||
rows="1"
|
||||
row-height="25"
|
||||
shaped
|
||||
|
||||
@keyup.enter.exact="addComment(newsFull.id)"
|
||||
hide-details
|
||||
v-model="textcomment"
|
||||
/>
|
||||
|
||||
@@ -6,7 +6,6 @@ const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
|
||||
// const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://${window.location.host}/`;
|
||||
const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://10.252.44.60:9965/`;
|
||||
const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://10.252.44.60:9966/`;
|
||||
const safetyURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000': `http://10.252.44.60:9965`;
|
||||
// для релизного меняем 'http://ukd/'
|
||||
// const baseURL = 'http://127.0.0.1:8000/';
|
||||
|
||||
@@ -90,4 +89,4 @@ async error => {
|
||||
})
|
||||
|
||||
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL,baseWS, safetyURL }
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL,baseWS }
|
||||
@@ -32,8 +32,8 @@
|
||||
<div v-show="showMore[item.id + category.id]">
|
||||
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
||||
<v-card-text>{{ file.name }}</v-card-text>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(safetyURL + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(safetyURL + file.url, file.name)"></v-btn>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||
</v-card-actions>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
@@ -65,7 +65,7 @@
|
||||
<script setup>
|
||||
import { ref, onBeforeMount } from 'vue';
|
||||
import { pagecounter } from '@/utils/universal_functions';
|
||||
import { axiosApiInstance, safetyURL } from '@/utils/axios-api';
|
||||
import { axiosApiInstance, baseURL } from '@/utils/axios-api';
|
||||
import { saveAs } from 'file-saver';
|
||||
import VuePdfEmbed from 'vue-pdf-embed';
|
||||
|
||||
@@ -77,6 +77,7 @@ const showFile = ref(false);
|
||||
let pdfSource = '';
|
||||
const loading = ref(false);
|
||||
const tab = ref('')
|
||||
const burl = baseURL.slice(0,-1)
|
||||
|
||||
|
||||
onBeforeMount(() => {
|
||||
|
||||
Reference in new issue
Block a user