Merge remote-tracking branch 'origin/modular' into modular
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@click="deleteAvatar"
|
@click="deleteAvatar"
|
||||||
v-if="imageUrl"
|
|
||||||
style="position: absolute; bottom: 10px; left: 0; z-index: 10"
|
style="position: absolute; bottom: 10px; left: 0; z-index: 10"
|
||||||
>
|
>
|
||||||
<BaseIcon icon="vuesax-linear:trash" class="text-red-600 cursor-pointer" />
|
<BaseIcon icon="vuesax-linear:trash" class="text-red-600 cursor-pointer" />
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ import UploadPic from "@/components/UploadPic.vue"
|
|||||||
import {updateBannerConst, getHeaderBannerConst} from "@/api/consts"
|
import {updateBannerConst, getHeaderBannerConst} from "@/api/consts"
|
||||||
import '@vueup/vue-quill/dist/vue-quill.snow.css'
|
import '@vueup/vue-quill/dist/vue-quill.snow.css'
|
||||||
import {QuillEditor} from '@vueup/vue-quill'
|
import {QuillEditor} from '@vueup/vue-quill'
|
||||||
|
import {baseURL} from "@root/config";
|
||||||
|
|
||||||
const benefitsList = ref<IBenefits[]>([])
|
const benefitsList = ref<IBenefits[]>([])
|
||||||
let id: number | null = null
|
let id: number | null = null
|
||||||
@@ -89,11 +90,13 @@ function removeRow(index: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleUpload(file: any, index: number, size: string) {
|
async function handleUpload(file: any, index: number, size: string) {
|
||||||
benefitsList.value[index][size] = file.src
|
benefitsList.value[index][size] = `${baseURL}/${file.src}`
|
||||||
}
|
}
|
||||||
|
|
||||||
function handelRemoveFile(index: number, size: string) {
|
function handelRemoveFile(index: number, size: string) {
|
||||||
benefitsList.value.splice(benefitsList?.value[index], 1)
|
// console.log( benefitsList.value.splice(benefitsList?.value[index], 1))
|
||||||
|
|
||||||
|
benefitsList.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
|
|||||||
Reference in New Issue
Block a user