|
|
|
|
@ -147,7 +147,6 @@ const getPid = async () => {
@@ -147,7 +147,6 @@ const getPid = async () => {
|
|
|
|
|
console.log(err) |
|
|
|
|
} finally { |
|
|
|
|
isLoading.value = false |
|
|
|
|
closeToast() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 上传到OSS |
|
|
|
|
@ -191,7 +190,7 @@ const sendToOss = async (src: string, url: string) => {
@@ -191,7 +190,7 @@ const sendToOss = async (src: string, url: string) => {
|
|
|
|
|
closeToast() |
|
|
|
|
pendingUploads.value-- |
|
|
|
|
showFailToast({ |
|
|
|
|
message: '照片上传失败', |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
console.log("uploadImage----err", err) |
|
|
|
|
@ -222,7 +221,7 @@ const createLog = () => {
@@ -222,7 +221,7 @@ const createLog = () => {
|
|
|
|
|
}).catch((err) => { |
|
|
|
|
console.log('getGenImages', err) |
|
|
|
|
showFailToast({ |
|
|
|
|
message: '照片上传失败', |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally(() => { |
|
|
|
|
@ -242,7 +241,10 @@ const getKindList = () => {
@@ -242,7 +241,10 @@ const getKindList = () => {
|
|
|
|
|
const data = res || [] |
|
|
|
|
kindList.value = data.list |
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
@ -257,7 +259,10 @@ const getSundryList = () => {
@@ -257,7 +259,10 @@ const getSundryList = () => {
|
|
|
|
|
const data = res || [] |
|
|
|
|
sundryList.value = data.list |
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
@ -273,7 +278,10 @@ const getList = () => {
@@ -273,7 +278,10 @@ const getList = () => {
|
|
|
|
|
const data = res || [] |
|
|
|
|
caseList.value = data.list |
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
|
|
|
|
showToast({ |
|
|
|
|
message: err.message, |
|
|
|
|
duration: 2000, |
|
|
|
|
}) |
|
|
|
|
}).finally((err) => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|