parent
98cb6aaacf
commit
98a6fb2387
|
|
@ -2,7 +2,7 @@
|
|||
<drag :data="drag_list" :space-col="20" :is-show-edit="true" @remove="remove" @on-sort="on_sort" @edit="edit" @replace="replace">
|
||||
<template #default="{ row, index }">
|
||||
<upload v-model="row.new_cover" :limit="1" size="40" styles="2"></upload>
|
||||
<el-image :src="row.data[imgParams]" fit="contain" class="img">
|
||||
<el-image :src="row.data[imgParams]" fit="contain" class="img radius-xs">
|
||||
<template #error>
|
||||
<div class="bg-f5 flex-row jc-c align-c radius h w">
|
||||
<icon name="error-img" size="16" color="9"></icon>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
</el-dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { get_cookie } from '@/utils';
|
||||
import { get_cookie, get_math } from '@/utils';
|
||||
const props = defineProps({
|
||||
dataId: {
|
||||
type: String,
|
||||
|
|
@ -40,7 +40,7 @@ watch(
|
|||
() => dialog_visible.value,
|
||||
(newVal) => {
|
||||
if (newVal) {
|
||||
new_link.value = (import.meta.env.VITE_APP_BASE_API == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_URL : pro_url) + '?s=diy/preview/id/' + props.dataId + '&system_type=default' + token.value;
|
||||
new_link.value = (import.meta.env.VITE_APP_BASE_API == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_URL : pro_url) + '?s=diy/preview/id/' + props.dataId + '&system_type=default' + token.value + '&uid=' + get_math();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue