mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-12 04:03:44 +08:00
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
watch(
|
||||
() => props.value,
|
||||
async () => {
|
||||
if (props.value === 0) {
|
||||
if (!props.value || props.value === 0) {
|
||||
valueLabel.value = null;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -226,7 +226,11 @@
|
||||
'When the file picker is currently in multiple-file mode, but the passed value is not of type string array, there may be potential issues.'
|
||||
);
|
||||
}
|
||||
fileList.value = value as string[];
|
||||
if (!value) {
|
||||
fileList.value = [];
|
||||
} else {
|
||||
fileList.value = value as string[];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ export const columns = [
|
||||
width: 32,
|
||||
height: 32,
|
||||
src: row.image,
|
||||
onError: errorImg,
|
||||
fallbackSrc: errorImg,
|
||||
style: {
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
@@ -326,7 +326,7 @@ export const columns = [
|
||||
width: 32,
|
||||
height: 32,
|
||||
src: image,
|
||||
onError: errorImg,
|
||||
fallbackSrc: errorImg,
|
||||
style: {
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
|
||||
@@ -153,7 +153,7 @@ export const columns = [
|
||||
width: 40,
|
||||
height: 40,
|
||||
src: row.fileUrl,
|
||||
onError: errorImg,
|
||||
fallbackSrc: errorImg,
|
||||
style: {
|
||||
width: '40px',
|
||||
height: '40px',
|
||||
|
||||
@@ -173,7 +173,7 @@ export const columns = [
|
||||
width: 32,
|
||||
height: 32,
|
||||
src: row.image,
|
||||
onError: errorImg,
|
||||
fallbackSrc: errorImg,
|
||||
style: {
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
@@ -288,4 +288,4 @@ async function loadOptions() {
|
||||
}
|
||||
}
|
||||
|
||||
await loadOptions();
|
||||
await loadOptions();
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
width: 48,
|
||||
height: 48,
|
||||
src: row.logo,
|
||||
onError: errorImg,
|
||||
fallbackSrc: errorImg,
|
||||
style: {
|
||||
width: '48px',
|
||||
height: '48px',
|
||||
|
||||
Reference in New Issue
Block a user