|
@@ -34,6 +34,8 @@ defineOptions({
|
34
|
34
|
name: 'TemplateManage'
|
35
|
35
|
})
|
36
|
36
|
|
|
37
|
+const compare = ref('')
|
|
38
|
+
|
37
|
39
|
const { tableRegister, tableState, tableMethods } = useTable({
|
38
|
40
|
fetchDataApi: async () => {
|
39
|
41
|
const { currentPage, pageSize } = tableState
|
|
@@ -250,6 +252,7 @@ const edittab = async (data: TableSlotDefault) => {
|
250
|
252
|
formData.categoryName = data.row.categoryName
|
251
|
253
|
formData.compressFileName = data.row.compressFileName
|
252
|
254
|
formData.compressFilePath = data.row.compressFilePath
|
|
255
|
+ compare.value = data.row.compressFilePath
|
253
|
256
|
formData.icon = data.row.icon.replace(PATH_URL, '')
|
254
|
257
|
imageUrl.value = data.row.icon
|
255
|
258
|
formData.categoryId = data.row.categoryId
|
|
@@ -265,7 +268,11 @@ const signIn = async () => {
|
265
|
268
|
const formRef = await getElFormExpose()
|
266
|
269
|
const formData = await getFormData()
|
267
|
270
|
console.log('lplplp', formData.compressFilePath)
|
268
|
|
- if (formData.compressFilePath) {
|
|
271
|
+ if (
|
|
272
|
+ formData.compressFilePath !== compare.value &&
|
|
273
|
+ formData.compressFilePath !== '' &&
|
|
274
|
+ formData.compressFilePath
|
|
275
|
+ ) {
|
269
|
276
|
formData.uploadCompress = true
|
270
|
277
|
} else {
|
271
|
278
|
formData.uploadCompress = false
|
|
@@ -325,6 +332,7 @@ const tianjia = async () => {
|
325
|
332
|
isedit.value = '添加'
|
326
|
333
|
schema[2].componentProps.fileList = []
|
327
|
334
|
dialogVisible.value = true
|
|
335
|
+ compare.value = ''
|
328
|
336
|
}
|
329
|
337
|
</script>
|
330
|
338
|
|