|
|
|
|
@ -190,7 +190,10 @@ function reload() {
@@ -190,7 +190,10 @@ function reload() {
|
|
|
|
|
const data = res || [] |
|
|
|
|
kindList.value = data.list |
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
@ -238,6 +241,10 @@ const createLog = () => {
@@ -238,6 +241,10 @@ const createLog = () => {
|
|
|
|
|
}, 10000) |
|
|
|
|
}).catch((err) => { |
|
|
|
|
console.log('createLog', err) |
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
showReload.value = false |
|
|
|
|
}) |
|
|
|
|
@ -272,6 +279,10 @@ function getCompareImage() {
@@ -272,6 +279,10 @@ function getCompareImage() {
|
|
|
|
|
compareList.value = res |
|
|
|
|
}).catch((err) => { |
|
|
|
|
console.log('getCompareImage', err) |
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
@ -371,6 +382,10 @@ const getImageList = () => {
@@ -371,6 +382,10 @@ const getImageList = () => {
|
|
|
|
|
}).catch((err) => { |
|
|
|
|
clearInterval(progressTimer.value) |
|
|
|
|
progress.value = 0 |
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|