1.文章和商品选择的数据增加圆角

2.预览每次打开都重新加载
v1.0.0
sws 2024-10-17 09:56:23 +08:00
parent 98cb6aaacf
commit 98a6fb2387
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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();
}
}
);